Do not allow newlines in subfloats. Fixes #8752.

This commit is contained in:
Richard Heck 2014-01-26 14:22:39 -05:00
parent eb2a445fac
commit 9d7f25a4ae

View 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);