From: Uwe Stöhr Date: Thu, 8 Jul 2010 03:01:50 +0000 (+0000) Subject: InsetBox.cpp: only shaded boxes can have a non-plain layout when there is no inner box X-Git-Tag: 2.0.0~3026 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=07e8f2e1bcbe5f747efc1c27f11025b397847963;p=lyx.git InsetBox.cpp: only shaded boxes can have a non-plain layout when there is no inner box git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34809 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index 893424b04e..d325057921 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -182,7 +182,7 @@ void InsetBox::metrics(MetricsInfo & m, Dimension & dim) const bool InsetBox::forcePlainLayout(idx_type) const { - return !params_.inner_box && params_.type != "Framed"; + return (!params_.inner_box || params_.use_makebox) && params_.type != "Shaded"; }