]> git.lyx.org Git - features.git/commitdiff
InsetBox.cpp: only shaded boxes can have multiple paragraphs when there is no inner box
authorUwe Stöhr <uwestoehr@web.de>
Thu, 8 Jul 2010 02:42:36 +0000 (02:42 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 8 Jul 2010 02:42:36 +0000 (02:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34808 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBox.cpp

index 832ab2dd9ea2fc818cbf80b69d706c9dcc757acb..893424b04e561f2db92934ca783f54ff0aedaa4e 100644 (file)
@@ -223,7 +223,7 @@ bool InsetBox::getStatus(Cursor & cur, FuncRequest const & cmd,
                return true;
 
        case LFUN_BREAK_PARAGRAPH:
-               if (params_.inner_box || params_.type == "Framed")
+               if ((params_.inner_box && !params_.use_makebox) || params_.type == "Shaded")
                        return InsetCollapsable::getStatus(cur, cmd, flag);
                flag.setEnabled(false);
                return true;