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
This commit is contained in:
Uwe Stöhr 2010-07-08 03:01:50 +00:00
parent 142caff833
commit 07e8f2e1bc

View File

@ -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";
}