From 9e86082c9a4680011815467c0d90dd0b9846a8d7 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 19 Oct 2006 19:16:33 +0000 Subject: [PATCH] make it compile again (hopefully) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15383 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathMBox.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathMBox.C b/src/mathed/InsetMathMBox.C index 7f32029a26..53b54d3fad 100644 --- a/src/mathed/InsetMathMBox.C +++ b/src/mathed/InsetMathMBox.C @@ -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 << "}"; } } -- 2.39.2