Fix comment

This commit is contained in:
Juergen Spitzmueller 2018-04-30 09:41:12 +02:00
parent 768c9a552e
commit 16dc796a47

View File

@ -1093,8 +1093,7 @@ bool InsetText::needsCProtection(bool const maintext, bool const fragile) const
if (hasCProtectContent(fragile))
return true;
// Environments and "no latex" types (e.g., knitr chunks)
// need cprotection regardless the content
// Environments generally need cprotection in fragile context
if (fragile && getLayout().latextype() == InsetLayout::ENVIRONMENT)
return true;