]> git.lyx.org Git - features.git/commitdiff
Fix small redraw bug.
authorJürgen Vigna <jug@sad.it>
Thu, 18 Apr 2002 15:19:14 +0000 (15:19 +0000)
committerJürgen Vigna <jug@sad.it>
Thu, 18 Apr 2002 15:19:14 +0000 (15:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4026 a592a061-630c-0410-9148-cb99ea01b6c8

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

index 142561b9f9a9f32bd9e1bcd5ec49f20d137256cc..2bebc2e3b7eb555d7e0cb0d3e19324ae94e923cc 100644 (file)
@@ -1,5 +1,9 @@
 2002-04-18  Juergen Vigna  <jug@sad.it>
 
+       * insettabular.C (localDispatch): repaint the cell if it was unlocked.
+       (unlockInsetInInset): set the_locking_inset to 0 only AFTER we made the
+       redraw otherwise we won't redraw.
+
        * insettext.C (draw): fixed the setting of LyXText::first_y it was
        not really right before, but I only discovered this with the last
        changes to Page up/down.
index 3a2d8ece0801dbbaefe5923e50396b33570ce896..74859a96abf7222e1f87a4bb7855e2ee19348d55 100644 (file)
@@ -687,7 +687,6 @@ bool InsetTabular::unlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                return false;
        if (the_locking_inset == inset) {
                the_locking_inset->insetUnlock(bv);
-               the_locking_inset = 0;
 #ifdef WITH_WARNINGS
 #warning fix scrolling when cellinset has requested a scroll (Jug)!!!
 #endif
@@ -696,6 +695,8 @@ bool InsetTabular::unlockInsetInInset(BufferView * bv, UpdatableInset * inset,
                        scroll(bv, 0.0F);
 #endif
                updateLocal(bv, CELL, false);
+               // this has to be here otherwise we don't redraw the cell!
+               the_locking_inset = 0;
 //             showInsetCursor(bv, false);
                return true;
        }