From a9a371fb5e3bbd3c63c66a12dfcd04f4a0f7a2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Vigna?= Date: Fri, 19 Apr 2002 11:12:14 +0000 Subject: [PATCH] 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 --- src/insets/ChangeLog | 6 ++++++ src/insets/insettabular.C | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 2bebc2e3b7..5cce432f8d 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,9 @@ +2002-04-19 Juergen Vigna + + * insettabular.C (insetUnlock): + (insetButtonPress): call an update before setting the_locking_inset = 0 + as otherwise we don't repaint! + 2002-04-18 Juergen Vigna * insettabular.C (localDispatch): repaint the cell if it was unlocked. diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 74859a96ab..08e46dfc03 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -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");