]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_charinset.C
make {} a proper inset; simplifications to the parser;
[features.git] / src / mathed / math_charinset.C
index 24280e327700873246a1ca6144029f0cbb9c4d3f..7227fc004cb0e0f8447e747c12f3f46a211a3f38 100644 (file)
@@ -59,8 +59,7 @@ void MathCharInset::write(std::ostream & os, bool) const
        if (code_ >= LM_TC_RM && code_ <= LM_TC_TEXTRM) 
                os << '\\' << math_font_name[code_ - LM_TC_RM] << '{';
 
-       if ((code_ == LM_TC_TEX && char_ != '{' && char_ != '}') ||
-                       (code_ == LM_TC_SPECIAL))
+       if (code_ == LM_TC_TEX || code_ == LM_TC_SPECIAL)
                os << '\\';
 
        os << char_;