]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_parboxinset.C
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_parboxinset.C
index e98937b7f00d8c4020dfff0b95f08154018f71e7..176d34988f1253a80b6768f86be010162fcff17f 100644 (file)
@@ -1,11 +1,23 @@
+/**
+ * \file math_parboxinset.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
 #include "math_parboxinset.h"
+#include "math_data.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
-#include "lyxlength.h"
 #include "debug.h"
 
+
+using std::string;
 using std::auto_ptr;
 using std::endl;
 
@@ -41,9 +53,9 @@ void MathParboxInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        FontSetChanger dummy1(mi.base, "textnormal");
        WidthChanger dummy2(mi.base, lyx_width_);
-       MathTextInset::metrics(mi, dim_);
-       metricsMarkers();
-       dim = dim_;
+       MathTextInset::metrics(mi, dim);
+       metricsMarkers(dim);
+       dim_ = dim;
 }