diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index c0f0a3927b..a81d11ec52 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2005-12-16 Martin Vermeer + + * insetcollapsable.C: fix "turds" when changing openinlined_ + 2005-12-05 Martin Vermeer * insetbox.[Ch]: fix bugs 2136, 2123 diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index 11b02bb1d2..7d39be20b6 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -138,7 +138,10 @@ void InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const dim = dimensionCollapsed(); if (status() == Open) { InsetText::metrics(mi, textdim_); + bool oldopeninlined = openinlined_; openinlined_ = (textdim_.wid + dim.wid <= mi.base.textwidth); + if (openinlined_ != oldopeninlined) + InsetText::metrics(mi, textdim_); if (openinlined_) { dim.wid += textdim_.wid; dim.des = max(dim.des - textdim_.asc + dim.asc, textdim_.des);