* src/insets/InsetBox.cpp:

- allow paragraph breaks in Framed boxes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24117 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-04-04 15:01:56 +00:00
parent a210f17a19
commit 981dedfe6b

View File

@ -178,7 +178,7 @@ void InsetBox::metrics(MetricsInfo & m, Dimension & dim) const
bool InsetBox::forceEmptyLayout(idx_type) const
{
return !params_.inner_box;
return !params_.inner_box && params_.type != "Framed";
}
@ -232,7 +232,7 @@ bool InsetBox::getStatus(Cursor & cur, FuncRequest const & cmd,
return true;
case LFUN_BREAK_PARAGRAPH:
if (params_.inner_box)
if (params_.inner_box || params_.type == "Framed")
return InsetCollapsable::getStatus(cur, cmd, flag);
flag.enabled(false);
return true;