]> git.lyx.org Git - features.git/blobdiff - src/Paragraph.cpp
Allow toggling of Zoom elements without buffer
[features.git] / src / Paragraph.cpp
index 369bda0d7e80e39e4cc47dc55276a3309071618d..1bf48f11e9c0acf92006b09f2c6f062146c2ad09 100644 (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;