]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSize.cpp
* src/mathed/InsetMathHull.cpp:
[lyx.git] / src / mathed / InsetMathSize.cpp
index 7b591e7eb1e006387bae61d47ae0bfe17b3194d5..4e6e3e9796e2487c8ee8f46bc3c2c75788f03600 100644 (file)
 #include <config.h>
 
 #include "InsetMathSize.h"
+
 #include "MathData.h"
 #include "MathParser.h"
 #include "MathStream.h"
 
 #include "support/convert.h"
-#include "support/std_ostream.h"
+
+#include <ostream>
 
 
 namespace lyx {
@@ -37,7 +39,6 @@ void InsetMathSize::metrics(MetricsInfo & mi, Dimension & dim) const
        StyleChanger dummy(mi.base, style_);
        cell(0).metrics(mi, dim);
        metricsMarkers(dim);
-       dim_ = dim;
 }
 
 
@@ -51,6 +52,7 @@ void InsetMathSize::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathSize::write(WriteStream & os) const
 {
+       MathEnsurer ensurer(os);
        os << "{\\" << key_->name << ' ' << cell(0) << '}';
 }