} else {
dim.des += textdim_.height() + TEXT_TO_BOTTOM_OFFSET;
dim.wid = max(dim.wid, textdim_.wid);
+ if (hasFixedWidth())
+ dim.wid = max(dim.wid, mi.base.textwidth);
}
}
}
setButtonLabel();
if (status_ == Collapsed)
cur.leaveInset(*this);
+ // Because we save CollapseStatus in lyx file, change of status
+ // should lead to a dirty buffer. (This fixes bug 2993).
+ cur.bv().buffer()->markDirty();
}
labelfont_ = font;
}
-docstring InsetCollapsable::floatName(string const & type, BufferParams const & bp)
+docstring InsetCollapsable::floatName(string const & type, BufferParams const & bp) const
{
FloatList const & floats = bp.getLyXTextClass().floats();
FloatList::const_iterator it = floats[type];