mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
ed858d73e5
commit
9b9168c31a
@ -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_);
|
||||
|
Loading…
Reference in New Issue
Block a user