first_after_edit was not set in the right place in one ::edit call (fix #385)

(see ChangeLog for detailed description). Anyway this stuff is one of the
first things to remove as soon as we have a decent inset and paragraph
iterator in 1.3.0!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4148 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-05-09 13:43:40 +00:00
parent fbccc15f8f
commit aa3c665813
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2002-05-09 Juergen Vigna <jug@sad.it>
* insetcollapsable.C (edit): first_after_edit should only be
set to true if we enter this inset and it was collapsed so we
open it up. This is needed to reclose it after a search/replace
or spellcheck function opened it and was negative.
2002-05-09 Dekel Tsur <dekelts@tau.ac.il>
* insetfloat.C (latex): Return correct value.

View File

@ -276,12 +276,12 @@ void InsetCollapsable::edit(BufferView * bv, bool front)
inset.setUpdateStatus(bv, InsetText::FULL);
bv->updateInset(this, false);
inset.edit(bv, front);
first_after_edit = true;
} else {
if (!bv->lockInset(this))
return;
inset.edit(bv, front);
}
first_after_edit = true;
}