]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSize.cpp
A little cleanup of the layout files.
[lyx.git] / src / mathed / InsetMathSize.cpp
index 7b591e7eb1e006387bae61d47ae0bfe17b3194d5..d1f34c831e119850a4d8f80f56aa48731ccb4cd5 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #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) << '}';
 }