From 3a36ee90ff07ccfd696307cd93388e40a7abc01f Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Tue, 4 Nov 2003 11:17:20 +0000 Subject: [PATCH] small fix to the locking nightmare git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8031 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 4 ++++ src/insets/insettabular.C | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index fcecf2190a..da46b017e9 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-11-04 Alfredo Braunstein + + * insettabular.C (lockInsetInInset): small fix + 2003-11-04 Lars Gullik Bjønnes * insettext.C (priv_dispatch): some DispatchResult type cleanup, diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index 88d23a3968..974e709145 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -450,9 +450,14 @@ bool InsetTabular::lockInsetInInset(BufferView * bv, UpdatableInset * inset) resetPos(bv); return true; } - actcell = i; - in->dispatch(FuncRequest(bv, LFUN_INSET_EDIT)); - return the_locking_inset->lockInsetInInset(bv, inset); + if (in->lockInsetInInset(bv, inset)) { + actcell = i; + the_locking_inset = in; + locked = true; + resetPos(bv); + in->dispatch(FuncRequest(bv, LFUN_INSET_EDIT)); + return true; + } } return false; } -- 2.39.2