Am 08.07.2010 04:46, schrieb Uwe Stöhr:

This small patch fixes the following bug:
LyX allows to create \frameboxes with multiple paragraph if there is no
inner box. But this is only possible for shaded boxes.

Attached is a better patch that additionally fixes this issue:
If you have a shaded box and no inner box, you can use non-plain layouts like item lists in the box. The bug is that LyX doesn't allow this.

regards Uwe
Index: InsetBox.cpp
===================================================================
--- InsetBox.cpp	(revision 34803)
+++ InsetBox.cpp	(working copy)
@@ -190,7 +190,7 @@
 
 bool InsetBox::forcePlainLayout(idx_type) const
 {
-	return !params_.inner_box && params_.type != "Framed";
+	return !params_.inner_box && params_.type != "Shaded";
 }
 
 
@@ -243,7 +243,7 @@
 		return true;
 
 	case LFUN_BREAK_PARAGRAPH:
-		if (params_.inner_box || params_.type == "Framed")
+		if (params_.inner_box || params_.type == "Shaded")
 			return InsetCollapsable::getStatus(cur, cmd, flag);
 		flag.setEnabled(false);
 		return true;

Reply via email to