Forgot setting of status_ variable in InsetERT::edit functions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2509 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2001-08-14 07:37:46 +00:00
parent 44d8be16d0
commit 1279189bd0
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2001-08-14 Juergen Vigna <jug@sad.it>
* insetert.C (edit): forgot to set status_ in edit calls!
2001-08-14 Dekel Tsur <dekelts@tau.ac.il>
* insettext.C: Compilation fix

View File

@ -197,6 +197,13 @@ void InsetERT::setFont(BufferView *, LyXFont const &, bool, bool selectall)
void InsetERT::edit(BufferView * bv, int x, int y, unsigned int button)
{
InsetCollapsable::edit(bv, x, y, button);
if (status_ != Inlined) {
if (collapsed_) {
status(0, Collapsed);
} else {
status(0, Open);
}
}
set_latex_font(bv);
}
@ -212,6 +219,13 @@ Inset::EDITABLE InsetERT::editable() const
void InsetERT::edit(BufferView * bv, bool front)
{
InsetCollapsable::edit(bv, front);
if (status_ != Inlined) {
if (collapsed_) {
status(0, Collapsed);
} else {
status(0, Open);
}
}
set_latex_font(bv);
}