From 452348f4ced63697e795bab93d9e1d83b58511f0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 1 Sep 2007 23:01:21 +0000 Subject: [PATCH] * InsetCollapsable::metrics(): Put back the test previous to revision 14472 for openinlined_ git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19985 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCollapsable.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index d92e5d47f6..c3f6e434ac 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -209,9 +209,7 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const if (geometry() == TopButton || geometry() == LeftButton) { InsetText::metrics(mi, textdim_); - // This expression should not contain mi.base.texwidth - openinlined_ = !hasFixedWidth() - && textdim_.wid < 0.5 * mi.base.bv->workWidth(); + openinlined_ = (textdim_.wid + 2 * dim.wid) <= mi.base.textwidth; if (openinlined_) { // Correct for button width. dim.wid += textdim_.wid; -- 2.39.5