]> git.lyx.org Git - lyx.git/commitdiff
hot fix for spurious cursor jumps in math insets
authorAndré Pönitz <poenitz@gmx.net>
Wed, 31 Oct 2001 10:00:43 +0000 (10:00 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 31 Oct 2001 10:00:43 +0000 (10:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2948 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulabase.C

index 1d04d8d4e7a65ca7c1956d85a1c6c76f3e476323..3d36585989575072d4ee786e6855e1b72dfc94e3 100644 (file)
@@ -186,6 +186,7 @@ void InsetFormulaBase::toggleInsetCursor(BufferView * bv)
        if (isCursorVisible())
                bv->hideLockedInsetCursor();
        else {
+               metrics(bv);
                int x;
                int y;
                mathcursor->getPos(x, y);
@@ -214,7 +215,8 @@ void InsetFormulaBase::showInsetCursor(BufferView * bv, bool)
                        int des = 0;
                        MathMetricsInfo mi(bv, font_, LM_ST_TEXT);
                        math_font_max_dim(LM_TC_TEXTRM, mi, asc, des);
-                       bv->fitLockedInsetCursor(x, y, asc, des);
+                       //bv->fitLockedInsetCursor(x, y, asc, des);
+                       //metrics(bv);
                        //lyxerr << "showInsetCursor: " << x << " " << y << "\n";
                }
                toggleInsetCursor(bv);