From 9d7f25a4aec8d79ee34639a1fbde0c08dd359a09 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 26 Jan 2014 14:22:39 -0500 Subject: [PATCH] Do not allow newlines in subfloats. Fixes #8752. --- src/insets/InsetFloat.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.2