]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/formulabase.C
more cursor up/down smoothing
[lyx.git] / src / mathed / formulabase.C
index 8358199b53996656deb8455a6688754721c204fd..f31a291568198f30eb4f778f52e7eae6d06f505d 100644 (file)
@@ -216,7 +216,7 @@ void InsetFormulaBase::getCursorPos(BufferView *, int & x, int & y) const
                return;
        }
        mathcursor->getPos(x, y);
-       //x -= xo_;
+       x -= xo_;
        y -= yo_;
        //lyxerr << "getCursorPos: " << x << " " << y << "\n";
 }
@@ -240,7 +240,7 @@ void InsetFormulaBase::showInsetCursor(BufferView * bv, bool)
        int x, y, asc, des;
        getCursorPos(bv, x, y);
        math_font_max_dim(font_, asc, des);
-       bv->showLockedInsetCursor(x, y, asc, des);
+       bv->showLockedInsetCursor(x + xo_, y, asc, des);
        setCursorVisible(true);
        //lyxerr << "showInsetCursor: " << x << " " << y << "\n";
 }