]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroTemplate.C
make it compile again (hopefully)
[lyx.git] / src / mathed / MathMacroTemplate.C
index b546e76720d74e8317c7f90681a1fed9108d8e45..b133375411767a99a7500ee556fe888ec048cedc 100644 (file)
@@ -183,9 +183,11 @@ void MathMacroTemplate::read(Buffer const &, LyXLex & lex)
 
 void MathMacroTemplate::write(Buffer const &, std::ostream & os) const
 {
-       WriteStream wi(os, false, false);
-       os << "FormulaMacro\n";
+       lyx::odocstringstream oss;
+       WriteStream wi(oss, false, false);
+       oss << "FormulaMacro\n";
        write(wi);
+       os << lyx::to_utf8(oss.str());
 }