]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rootinset.C
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_rootinset.C
index 85025a1add6a931df12584d86266bac323fa0120..8822ae1bf533b2622bd86c1557bb17f335bd2148 100644 (file)
@@ -29,7 +29,7 @@ MathRootInset::MathRootInset()
 {}
 
 
-auto_ptr<InsetBase> MathRootInset::clone() const
+auto_ptr<InsetBase> MathRootInset::doClone() const
 {
        return auto_ptr<InsetBase>(new MathRootInset(*this));
 }
@@ -82,7 +82,7 @@ void MathRootInset::normalize(NormalStream & os) const
 
 bool MathRootInset::idxUpDown(LCursor & cur, bool up) const
 {
-       bool target = !up; // up ? 0 : 1;
+       LCursor::idx_type const target = up ? 0 : 1;
        if (cur.idx() == target)
                return false;
        cur.idx() = target;