]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathGrid.C
Fix command-line export
[lyx.git] / src / mathed / InsetMathGrid.C
index 4336e0657278ab41eb31cbe0ac6bac65c2d36836..63d96f6a3ef8833ca1f9fab8801a7d3a786dfc46 100644 (file)
@@ -784,7 +784,7 @@ bool InsetMathGrid::idxUpDown(LCursor & cur, bool up) const
                        return false;
                cur.idx() += ncols();
        }
-       cur.pos() = cur.cell().x2pos(cur.x_target() - cur.cell().xo());
+       cur.pos() = cur.cell().x2pos(cur.x_target() - cur.cell().xo(cur.bv()));
        return true;
 }