]> git.lyx.org Git - lyx.git/commitdiff
make it compile again (hopefully)
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 19 Oct 2006 19:16:33 +0000 (19:16 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 19 Oct 2006 19:16:33 +0000 (19:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15383 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathMBox.C

index 7f32029a269b8904d872ba85868409b41219c9bf..53b54d3faddb819b66dd985613d8bde15b6aae86 100644 (file)
@@ -25,6 +25,8 @@
 #include "paragraph.h"
 #include "texrow.h"
 
+using lyx::odocstream;
+
 using std::auto_ptr;
 using std::endl;
 
@@ -73,7 +75,9 @@ void InsetMathMBox::write(WriteStream & ws) const
                ws << "}";
        } else {
                ws << "\\mbox{\n";
-               text_.write(*bv_->buffer(), ws.os());
+               std::ostringstream os;
+               text_.write(*bv_->buffer(), os);
+               ws.os() << lyx::from_utf8(os.str());
                ws << "}";
        }
 }