]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracbase.C
Make Helge happy: no more crash on arrow up/down in math macro
[lyx.git] / src / mathed / math_fracbase.C
index 1645de6872eae5248e004126b77a5bd4be3799d3..f55f7fe8d402f212a06fe5c3b0b664607ea7b744 100644 (file)
@@ -32,12 +32,12 @@ bool MathFracbaseInset::idxLeft(LCursor &) const
 }
 
 
-bool MathFracbaseInset::idxUpDown(LCursor & cur, bool up, int targetx) const
+bool MathFracbaseInset::idxUpDown(LCursor & cur, bool up) const
 {
        MathInset::idx_type target = !up; // up ? 0 : 1, since upper cell has idx 0
        if (cur.idx() == target)
                return false;
        cur.idx() = target;
-       cur.pos() = cell(target).x2pos(targetx);
+       cur.pos() = cell(target).x2pos(cur.x_target());
        return true;
 }