]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/CommandInset.cpp
Seems boost also includes all std headers. Not including boost therefore produces...
[lyx.git] / src / mathed / CommandInset.cpp
index be67c3d52e63d0316361b711ff0b11a1d3bbb532..6ed32754d46f2515e71e537dcb3bfda65d8b9d30 100644 (file)
@@ -65,8 +65,9 @@ void CommandInset::draw(PainterInfo & pi, int x, int y) const
 
 void CommandInset::write(WriteStream & os) const
 {
+       ModeSpecifier specifier(os, currentMode(), lockedMode(), asciiOnly());
        MathEnsurer ensurer(os, needs_math_mode_);
-       os << '\\' << name_.c_str();
+       os << '\\' << name_;
        if (cell(1).size())
                os << '[' << cell(1) << ']';
        os << '{' << cell(0) << '}';