]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
Add a layout tag ForceOwnlines that assures an inset is started and terminated by...
[lyx.git] / 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);