commit 9d7f25a4aec8d79ee34639a1fbde0c08dd359a09
Author: Richard Heck <[email protected]>
Date: Sun Jan 26 14:22:39 2014 -0500
Do not allow newlines in subfloats. Fixes #8752.
diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp
index 5121d72..beb5e0b 100644
--- a/src/insets/InsetFloat.cpp
+++ b/src/insets/InsetFloat.cpp
@@ -189,6 +189,12 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const
& cmd,
return true;
} else
return false;
+
+ case LFUN_NEWLINE_INSERT:
+ if (params_.subfloat) {
+ flag.setEnabled(false);
+ return true;
+ }
default:
return InsetCollapsable::getStatus(cur, cmd, flag);