From 9a4ff503a78325e528fbc6638343d500a391482f Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Wed, 5 Nov 2003 09:36:07 +0000 Subject: [PATCH] two small fixes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8040 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insetcollapsable.C | 1 + src/insets/insettext.C | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 3e755a7c88..6a5a301589 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2003-11-05 Alfredo Braunstein + + * insetcollapsable.C (edit): add open() all + * insettext.C (edit): add setViewCache call + 2003-11-04 André Pönitz * inset.h (edit): move locking code from dispatch() to edit() diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 1b17118234..5d148b4fd0 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -281,6 +281,7 @@ void InsetCollapsable::edit(BufferView * bv, bool left) lyxerr << "InsetCollapsable: can't lock" << endl; inset.edit(bv, left); first_after_edit = true; + open(bv); } /* diff --git a/src/insets/insettext.C b/src/insets/insettext.C index 885c9f91a8..0b04019abc 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -576,6 +576,8 @@ void InsetText::lfunMouseMotion(FuncRequest const & cmd) void InsetText::edit(BufferView * bv, bool left) { + setViewCache(bv); + if (!bv->lockInset(this)) { lyxerr[Debug::INSETS] << "Cannot lock inset" << endl; return;