mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
582fe0990f
commit
a5b7eeacaa
@ -4120,17 +4120,6 @@ bool Paragraph::needsCProtection(bool const fragile) const
|
|||||||
continue;
|
continue;
|
||||||
if (ins->needsCProtection(maintext, fragile))
|
if (ins->needsCProtection(maintext, fragile))
|
||||||
return true;
|
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;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user