mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Do not allow newlines in subfloats. Fixes #8752.
This commit is contained in:
parent
eb2a445fac
commit
9d7f25a4ae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user