From: Jürgen Vigna Date: Tue, 14 Aug 2001 07:37:46 +0000 (+0000) Subject: Forgot setting of status_ variable in InsetERT::edit functions. X-Git-Tag: 1.6.10~20836 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1279189bd015178d5d41be0eb1264a15dc6e7e89;p=features.git 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 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index d76320bf49..7cea082331 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2001-08-14 Juergen Vigna + + * insetert.C (edit): forgot to set status_ in edit calls! + 2001-08-14 Dekel Tsur * insettext.C: Compilation fix diff --git a/src/insets/insetert.C b/src/insets/insetert.C index 3749b647d9..4780c868ee 100644 --- a/src/insets/insetert.C +++ b/src/insets/insetert.C @@ -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); }