]> 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 c5448a21fc688ab89ad915a30385f5521a1d938e..6ed32754d46f2515e71e537dcb3bfda65d8b9d30 100644 (file)
@@ -65,15 +65,12 @@ void CommandInset::draw(PainterInfo & pi, int x, int y) const
 
 void CommandInset::write(WriteStream & os) const
 {
-       ModeSpecifier specifier(os, currentMode(), lockedMode());
+       ModeSpecifier specifier(os, currentMode(), lockedMode(), asciiOnly());
        MathEnsurer ensurer(os, needs_math_mode_);
-       bool const ascii = os.asciiOnly();
-       os.asciiOnly(asciiOnly());
        os << '\\' << name_;
        if (cell(1).size())
                os << '[' << cell(1) << ']';
        os << '{' << cell(0) << '}';
-       os.asciiOnly(ascii);
 }