]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rootinset.C
the DocIterator stuff
[lyx.git] / src / mathed / math_rootinset.C
index 0b99091aadb16cf973c07e130b33ef53dea5c024..85025a1add6a931df12584d86266bac323fa0120 100644 (file)
@@ -38,11 +38,11 @@ auto_ptr<InsetBase> MathRootInset::clone() const
 void MathRootInset::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        MathNestInset::metrics(mi);
-       dim_.asc = max(cell(0).ascent()  + 5, cell(1).ascent())  + 2;
-       dim_.des = max(cell(1).descent() + 5, cell(0).descent()) + 2;
-       dim_.wid = cell(0).width() + cell(1).width() + 10;
-       metricsMarkers(1);
-       dim = dim_;
+       dim.asc = max(cell(0).ascent()  + 5, cell(1).ascent())  + 2;
+       dim.des = max(cell(1).descent() + 5, cell(0).descent()) + 2;
+       dim.wid = cell(0).width() + cell(1).width() + 10;
+       metricsMarkers(dim);
+       dim_ = dim;
 }
 
 
@@ -80,7 +80,7 @@ void MathRootInset::normalize(NormalStream & os) const
 }
 
 
-bool MathRootInset::idxUpDown(LCursor & cur, bool up, int) const
+bool MathRootInset::idxUpDown(LCursor & cur, bool up) const
 {
        bool target = !up; // up ? 0 : 1;
        if (cur.idx() == target)