X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fformulabase.C;h=5561a0450716e215da05eb6ff52821a2601b2f1d;hb=06fbab0b77d2824bcebab39f2c0d4a7a705b5670;hp=05ad274999e9ce242f7f14a03510dbc4ec06a76d;hpb=6a5312882228eab4cc19992d1255f53448e597c1;p=lyx.git diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 05ad274999..5561a04507 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -209,16 +209,17 @@ void InsetFormulaBase::showInsetCursor(BufferView * bv, bool) if (isCursorVisible()) return; if (mathcursor) { + metrics(bv); int x; int y; mathcursor->getPos(x, y); + y -= yo_; int asc = 0; int des = 0; MathMetricsInfo mi(bv, font_, display() ? LM_ST_DISPLAY : LM_ST_TEXT); math_font_max_dim(LM_TC_TEXTRM, mi, asc, des); - //bv->fitLockedInsetCursor(x, y, asc, des); - //metrics(bv); - //lyxerr << "showInsetCursor: " << x << " " << y << "\n"; + bv->fitLockedInsetCursor(x, y, asc, des); + //lyxerr << "showInsetCursor: x: " << x << " y: " << y << "\n"; } toggleInsetCursor(bv); }