]> git.lyx.org Git - features.git/commitdiff
Call an update before setting the_locking_inset = 0 as otherwise we
authorJürgen Vigna <jug@sad.it>
Fri, 19 Apr 2002 11:12:14 +0000 (11:12 +0000)
committerJürgen Vigna <jug@sad.it>
Fri, 19 Apr 2002 11:12:14 +0000 (11:12 +0000)
don't repaint! (fix #332).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4033 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettabular.C

index 2bebc2e3b7eb555d7e0cb0d3e19324ae94e923cc..5cce432f8d3b4386f188926d00dce78d989d3477 100644 (file)
@@ -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>
 
        * insettabular.C (localDispatch): repaint the cell if it was unlocked.
index 74859a96abf7222e1f87a4bb7855e2ee19348d55..08e46dfc03589ce42d91db9a35dda732d10ec8ae 100644 (file)
@@ -597,8 +597,8 @@ void InsetTabular::insetUnlock(BufferView * bv)
 {
        if (the_locking_inset) {
                the_locking_inset->insetUnlock(bv);
-               the_locking_inset = 0;
                updateLocal(bv, CELL, false);
+               the_locking_inset = 0;
        }
        hideInsetCursor(bv);
        oldcell = -1;
@@ -792,6 +792,7 @@ void InsetTabular::insetButtonPress(BufferView * bv, int x, int y, int button)
        if (button == 3) {
                if ((ocell != actcell) && the_locking_inset) {
                        the_locking_inset->insetUnlock(bv);
+                       updateLocal(bv, CELL, false);
                        the_locking_inset = 0;
                }
                showInsetCursor(bv);
@@ -809,8 +810,8 @@ void InsetTabular::insetButtonPress(BufferView * bv, int x, int y, int button)
                return;
        } else if (the_locking_inset) {
                the_locking_inset->insetUnlock(bv);
-               the_locking_inset = 0;
                updateLocal(bv, CELL, false);
+               the_locking_inset = 0;
        }
        if (button == 2) {
                localDispatch(bv, LFUN_PASTESELECTION, "paragraph");