]> git.lyx.org Git - features.git/commitdiff
Do not allow newlines in subfloats. Fixes #8752.
authorRichard Heck <rgheck@lyx.org>
Sun, 26 Jan 2014 19:22:39 +0000 (14:22 -0500)
committerRichard Heck <rgheck@lyx.org>
Sun, 26 Jan 2014 19:23:40 +0000 (14:23 -0500)
src/insets/InsetFloat.cpp

index 5121d7263f66c42d5e8634d74a22fda8a694563e..beb5e0b5571e1b2d63508eafef0d52f2fcb0a9b8 100644 (file)
@@ -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);