two small fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8040 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-05 09:36:07 +00:00
parent 7871470eb0
commit 9a4ff503a7
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-11-05 Alfredo Braunstein <abraunst@libero.it>
* insetcollapsable.C (edit): add open() all
* insettext.C (edit): add setViewCache call
2003-11-04 André Pönitz <poenitz@gmx.net>
* inset.h (edit): move locking code from dispatch() to edit()

View File

@ -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);
}
/*

View File

@ -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;