Fix redrawing bug for multirow inlined collapsable inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19921 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-30 19:27:33 +00:00
parent ed858d73e5
commit 9b9168c31a

View File

@ -212,6 +212,9 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
openinlined_ = !hasFixedWidth()
&& textdim_.wid < 0.5 * mi.base.bv->workWidth();
if (openinlined_) {
// FIXME: this is not ideal but we need to clear it
// out because the Row::changed() status is reset.
mi.base.bv->textMetrics(&text_).clear();
// Correct for button width, and re-fit
mi.base.textwidth -= dim.wid;
InsetText::metrics(mi, textdim_);