]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSymbol.cpp
... and RELEASE-NOTES
[lyx.git] / src / mathed / InsetMathSymbol.cpp
index a4dc36abf090ec0de1cb26e6c3f720d2ef3c530b..68c824742919f1c866368894bb8f0ee423344740 100644 (file)
@@ -260,6 +260,8 @@ void InsetMathSymbol::write(WriteStream & os) const
        unique_ptr<MathEnsurer> ensurer;
        if (currentMode() != TEXT_MODE)
                ensurer = make_unique<MathEnsurer>(os);
+       else
+               ensurer = make_unique<MathEnsurer>(os, false, true, true);
        os << '\\' << name();
 
        // $,#, etc. In theory the restriction based on catcodes, but then