]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathString.cpp
Partly revert r28731 (see discussion in bug 5836).
[features.git] / src / mathed / InsetMathString.cpp
index 552124a1435f1c7346a8788b8fabdd16b331e812..5dcd595d858a0d97e018df7389a4246bd9eb922e 100644 (file)
@@ -114,9 +114,6 @@ void InsetMathString::write(WriteStream & os) const
        // We may already be inside an \ensuremath command.
        bool in_forced_mode = os.pendingBrace();
 
-       // Track italic shape inside \lyxmathsym
-       bool mathalpha = false;
-
        // We will take care of matching braces.
        os.pendingBrace(false);
 
@@ -150,22 +147,10 @@ void InsetMathString::write(WriteStream & os) const
                                                os << '}';
                                                in_forced_mode = false;
                                        } else {
-                                               mathalpha = Encodings::isMathAlpha(c);
-                                               if (mathalpha)
-                                                       os << "\\lyxmathsym*{";
-                                               else
-                                                       os << "\\lyxmathsym{";
+                                               os << "\\lyxmathsym{";
                                                in_forced_mode = true;
                                        }
                                        os.textMode(true);
-                       } else if (in_forced_mode && mathalpha != Encodings::isMathAlpha(c)) {
-                               // we are already inside \lyxmathsym but
-                               // have to change the output shape
-                               mathalpha = !mathalpha;
-                               if (mathalpha)
-                                       os << "}\\lyxmathsym*{";
-                               else
-                                       os << "}\\lyxmathsym{";
                        }
                        os << command;
                        // We may need a space if the command contains a macro