Remove remaining math cprotection test.

We'll see if someone comes up with a reproducible case, and if so,
whether ordinary protection works here as well.

See #6243
This commit is contained in:
Juergen Spitzmueller 2021-12-27 11:52:25 +01:00
parent 582fe0990f
commit a5b7eeacaa

View File

@ -4120,17 +4120,6 @@ bool Paragraph::needsCProtection(bool const fragile) const
continue;
if (ins->needsCProtection(maintext, fragile))
return true;
// Now check math environments
InsetMath const * im = ins->asInsetMath();
if (!im || im->cell(0).empty())
continue;
switch(im->cell(0)[0]->lyxCode()) {
case MATH_ENV_CODE:
// these need cprotection
return true;
default:
break;
}
}
return false;