Fix #11992: Disable modification of captions in subfloats.

Patch from Daniel.
This commit is contained in:
Richard Kimberly Heck 2021-01-03 14:41:38 -05:00
parent 33f9cfb796
commit 68d9ea4930

View File

@ -232,7 +232,7 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
if (cur.depth() > 1) { if (cur.depth() > 1) {
varia = cur[cur.depth() - 2].inset().allowsCaptionVariation(type); varia = cur[cur.depth() - 2].inset().allowsCaptionVariation(type);
} }
status.setEnabled(varia status.setEnabled(!is_subfloat_ && varia
&& buffer().params().documentClass().hasInsetLayout( && buffer().params().documentClass().hasInsetLayout(
from_ascii("Caption:" + type))); from_ascii("Caption:" + type)));
return true; return true;