X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFloat.cpp;h=beb5e0b5571e1b2d63508eafef0d52f2fcb0a9b8;hb=a25569ebb3e739779ff458b287e403c3bf79777a;hp=5121d7263f66c42d5e8634d74a22fda8a694563e;hpb=c61ef8b205ee0fb6473af0f120c359e7d1ebe83c;p=lyx.git diff --git a/src/insets/InsetFloat.cpp b/src/insets/InsetFloat.cpp index 5121d7263f..beb5e0b557 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);