]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathMBox.C
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / InsetMathMBox.C
index 7f32029a269b8904d872ba85868409b41219c9bf..962ece1de04e3cde30d299ac38585b2d5c9f4d3e 100644 (file)
@@ -12,7 +12,6 @@
 
 #include "InsetMathMBox.h"
 #include "MathData.h"
-#include "MathMLStream.h"
 
 #include "BufferView.h"
 #include "buffer.h"
 #include "paragraph.h"
 #include "texrow.h"
 
+
+namespace lyx {
+
+using odocstream;
+
 using std::auto_ptr;
 using std::endl;
 
@@ -73,7 +77,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() << from_utf8(os.str());
                ws << "}";
        }
 }
@@ -114,3 +120,6 @@ void InsetMathMBox::drawSelection(PainterInfo & pi, int x, int y) const
 {
        text_.drawSelection(pi, x, y);
 }
+
+
+} // namespace lyx