]> git.lyx.org Git - features.git/commitdiff
Initialize status_ in the 3rd constructor.
authorJürgen Vigna <jug@sad.it>
Mon, 13 Aug 2001 09:57:47 +0000 (09:57 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 13 Aug 2001 09:57:47 +0000 (09:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2494 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetert.C

index a19f05650e9a722aca5c1362e6f4501ea55f130a..8fdb300624435fb261193c6239eeb7b69f774f63 100644 (file)
@@ -1,5 +1,7 @@
 2001-08-13  Juergen Vigna  <jug@sad.it>
 
+       * insetert.C (InsetERT): init status_ also in the 3rd constructor.
+
        * insettabular.C (tabularFeatures): fixed fix where deleting the
        last row didn't get the right actcell!
 
index 628e13c8e95abd676ef2210928f940097f819c19..3749b647d938160f745be581b48cced04d3612e7 100644 (file)
@@ -67,6 +67,10 @@ Inset * InsetERT::clone(Buffer const &, bool same_id) const
 InsetERT::InsetERT(string const & contents, bool collapsed)
        : InsetCollapsable(collapsed)
 {
+       if (collapsed)
+               status_ = Collapsed;
+       else
+               status_ = Open;
 #ifndef INHERIT_LANG
        LyXFont font(LyXFont::ALL_INHERIT, latex_language);
 #else