From: Georg Baum Date: Thu, 19 Oct 2006 19:16:33 +0000 (+0000) Subject: make it compile again (hopefully) X-Git-Tag: 1.6.10~12338 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9e86082c9a4680011815467c0d90dd0b9846a8d7;p=lyx.git make it compile again (hopefully) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15383 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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 << "}"; } }