]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcollapsable.C
use more specific smart_ptr headers
[lyx.git] / src / insets / insetcollapsable.C
index b9a34a777d4d1fdd96b27fef796523bffde25895..df7d33887a57a94ebcac5dc9874bccf64a29af5e 100644 (file)
@@ -45,7 +45,7 @@ InsetCollapsable::InsetCollapsable(BufferParams const & bp, bool collapsed)
 #if 0
        autocollapse(false),
 #endif
-         oldWidth(0), in_update(false)
+         oldWidth(0), in_update(false), first_after_edit(false)
 {
        inset.setOwner(this);
        inset.setAutoBreakRows(true);
@@ -63,7 +63,7 @@ InsetCollapsable::InsetCollapsable(InsetCollapsable const & in, bool same_id)
 #if 0
          autocollapse(in.autocollapse),
 #endif
-         oldWidth(0), in_update(false)
+         oldWidth(0), in_update(false), first_after_edit(false)
 {
        inset.init(&(in.inset), same_id);
        inset.setOwner(this);
@@ -355,7 +355,7 @@ bool InsetCollapsable::insetButtonRelease(BufferView * bv,
        if ((button == 3) && !ret) {
                return showInsetDialog(bv);
        }
-       return false;
+       return ret;
 }