mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Call an update before setting the_locking_inset = 0 as otherwise we
don't repaint! (fix #332). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4033 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3e12056da2
commit
a9a371fb5e
@ -1,3 +1,9 @@
|
|||||||
|
2002-04-19 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
|
* insettabular.C (insetUnlock):
|
||||||
|
(insetButtonPress): call an update before setting the_locking_inset = 0
|
||||||
|
as otherwise we don't repaint!
|
||||||
|
|
||||||
2002-04-18 Juergen Vigna <jug@sad.it>
|
2002-04-18 Juergen Vigna <jug@sad.it>
|
||||||
|
|
||||||
* insettabular.C (localDispatch): repaint the cell if it was unlocked.
|
* insettabular.C (localDispatch): repaint the cell if it was unlocked.
|
||||||
|
@ -597,8 +597,8 @@ void InsetTabular::insetUnlock(BufferView * bv)
|
|||||||
{
|
{
|
||||||
if (the_locking_inset) {
|
if (the_locking_inset) {
|
||||||
the_locking_inset->insetUnlock(bv);
|
the_locking_inset->insetUnlock(bv);
|
||||||
the_locking_inset = 0;
|
|
||||||
updateLocal(bv, CELL, false);
|
updateLocal(bv, CELL, false);
|
||||||
|
the_locking_inset = 0;
|
||||||
}
|
}
|
||||||
hideInsetCursor(bv);
|
hideInsetCursor(bv);
|
||||||
oldcell = -1;
|
oldcell = -1;
|
||||||
@ -792,6 +792,7 @@ void InsetTabular::insetButtonPress(BufferView * bv, int x, int y, int button)
|
|||||||
if (button == 3) {
|
if (button == 3) {
|
||||||
if ((ocell != actcell) && the_locking_inset) {
|
if ((ocell != actcell) && the_locking_inset) {
|
||||||
the_locking_inset->insetUnlock(bv);
|
the_locking_inset->insetUnlock(bv);
|
||||||
|
updateLocal(bv, CELL, false);
|
||||||
the_locking_inset = 0;
|
the_locking_inset = 0;
|
||||||
}
|
}
|
||||||
showInsetCursor(bv);
|
showInsetCursor(bv);
|
||||||
@ -809,8 +810,8 @@ void InsetTabular::insetButtonPress(BufferView * bv, int x, int y, int button)
|
|||||||
return;
|
return;
|
||||||
} else if (the_locking_inset) {
|
} else if (the_locking_inset) {
|
||||||
the_locking_inset->insetUnlock(bv);
|
the_locking_inset->insetUnlock(bv);
|
||||||
the_locking_inset = 0;
|
|
||||||
updateLocal(bv, CELL, false);
|
updateLocal(bv, CELL, false);
|
||||||
|
the_locking_inset = 0;
|
||||||
}
|
}
|
||||||
if (button == 2) {
|
if (button == 2) {
|
||||||
localDispatch(bv, LFUN_PASTESELECTION, "paragraph");
|
localDispatch(bv, LFUN_PASTESELECTION, "paragraph");
|
||||||
|
Loading…
Reference in New Issue
Block a user