]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rootinset.C
mathed uglyfication
[lyx.git] / src / mathed / math_rootinset.C
index 98c214552afb28f0f0bf2305552b75ce6b1cc01c..6d9513a5bbac0a076fe0cbeb7c1d91f701246c8f 100644 (file)
@@ -78,13 +78,14 @@ void MathRootInset::normalize(NormalStream & os) const
 }
 
 
-bool MathRootInset::idxUpDown(idx_type & idx, pos_type & pos, bool up, int) const
+bool MathRootInset::idxUpDown(BufferView & bv, bool up, int) const
 {
+       CursorSlice & cur = cursorTip(bv);
        bool target = !up; // up ? 0 : 1;
-       if (idx == target)
+       if (cur.idx() == target)
                return false;
-       idx = target;
-       pos = target ? 0 : cell(0).size();
+       cur.idx() = target;
+       cur.pos() = up ? cur.lastpos() : 0;
        return true;
 }