]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
the DocIterator stuff
[lyx.git] / src / mathed / math_sqrtinset.C
index f02db6a954ec6a916947baa779346bb5f031a76b..61da212107f5e328df9948c40b0b0e01d758f561 100644 (file)
@@ -14,6 +14,7 @@
 #include "math_data.h"
 #include "math_mathmlstream.h"
 #include "textpainter.h"
+#include "LColor.h"
 #include "frontends/Painter.h"
 
 using std::auto_ptr;
@@ -32,12 +33,12 @@ auto_ptr<InsetBase> MathSqrtInset::clone() const
 
 void MathSqrtInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       cell(0).metrics(mi, dim_);
-       dim_.asc += 4;
-       dim_.des += 2;
-       dim_.wid += 12;
-       metricsMarkers(1);
-       dim = dim_;
+       cell(0).metrics(mi, dim);
+       dim.asc += 4;
+       dim.des += 2;
+       dim.wid += 12;
+       metricsMarkers(dim);
+       dim_ = dim;
 }