Allow counter insets in pass thru

This commit is contained in:
Juergen Spitzmueller 2021-05-06 14:44:42 +02:00
parent 9586c51c3f
commit 67762aaf08

View File

@ -945,9 +945,11 @@ bool InsetText::hasCProtectContent(bool fragile) const
bool InsetText::insetAllowed(InsetCode code) const
{
switch (code) {
// Arguments and (plain) quotes are also allowed in PassThru insets
// Arguments, (plain) quotes and counter insets
// are also allowed in PassThru insets
case ARG_CODE:
case QUOTE_CODE:
case COUNTER_CODE:
return true;
default:
return !isPassThru();