mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix #11992: Disable modification of captions in subfloats.
Patch from Daniel.
This commit is contained in:
parent
33f9cfb796
commit
68d9ea4930
@ -232,7 +232,7 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
if (cur.depth() > 1) {
|
||||
varia = cur[cur.depth() - 2].inset().allowsCaptionVariation(type);
|
||||
}
|
||||
status.setEnabled(varia
|
||||
status.setEnabled(!is_subfloat_ && varia
|
||||
&& buffer().params().documentClass().hasInsetLayout(
|
||||
from_ascii("Caption:" + type)));
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user