]> git.lyx.org Git - features.git/commitdiff
looks better now...
authorAndré Pönitz <poenitz@gmx.net>
Thu, 22 Aug 2002 15:29:52 +0000 (15:29 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 22 Aug 2002 15:29:52 +0000 (15:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5076 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C

index f31a291568198f30eb4f778f52e7eae6d06f505d..907863df075f3c1492bb0263b0fba2b91490ab46 100644 (file)
@@ -216,6 +216,7 @@ void InsetFormulaBase::getCursorPos(BufferView *, int & x, int & y) const
                return;
        }
        mathcursor->getPos(x, y);
+       x = mathcursor->targetX();
        x -= xo_;
        y -= yo_;
        //lyxerr << "getCursorPos: " << x << " " << y << "\n";
@@ -238,9 +239,9 @@ void InsetFormulaBase::showInsetCursor(BufferView * bv, bool)
                return;
        fitInsetCursor(bv);
        int x, y, asc, des;
-       getCursorPos(bv, x, y);
+       mathcursor->getPos(x, y);
        math_font_max_dim(font_, asc, des);
-       bv->showLockedInsetCursor(x + xo_, y, asc, des);
+       bv->showLockedInsetCursor(x, y - yo_, asc, des);
        setCursorVisible(true);
        //lyxerr << "showInsetCursor: " << x << " " << y << "\n";
 }