]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_macro.C
and some mathed de-uglyfication
[features.git] / src / mathed / math_macro.C
index 30e32bc52a3ed67b86800c9842b1197f766e7a85..0092dd52e019ac658eea714ebcb22c35342a5d46 100644 (file)
@@ -155,14 +155,13 @@ void MathMacro::dump() const
 }
 
 
-bool MathMacro::idxUpDown(BufferView & bv, bool up, int x) const
+bool MathMacro::idxUpDown(LCursor & cur, bool up, int x) const
 {
-       CursorSlice & cur = cursorTip(bv);
        if (up) {
-               if (!MathNestInset::idxLeft(bv))
+               if (!MathNestInset::idxLeft(cur))
                        return false;
        } else {
-               if (!MathNestInset::idxRight(bv))
+               if (!MathNestInset::idxRight(cur))
                        return false;
        }
        cur.pos() = cur.cell().x2pos(x);
@@ -170,13 +169,13 @@ bool MathMacro::idxUpDown(BufferView & bv, bool up, int x) const
 }
 
 
-bool MathMacro::idxLeft(BufferView &) const
+bool MathMacro::idxLeft(LCursor &) const
 {
        return false;
 }
 
 
-bool MathMacro::idxRight(BufferView &) const
+bool MathMacro::idxRight(LCursor &) const
 {
        return false;
 }