From 9b9168c31a990cd1fcb09307f8d25807d2268876 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 30 Aug 2007 19:27:33 +0000 Subject: [PATCH] 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 --- src/insets/InsetCollapsable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index 9d77079bfb..022a51e2f3 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -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_);