hot fix for spurious cursor jumps in math insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2948 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-31 10:00:43 +00:00
parent 60ccb16240
commit cf629f4331

View 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);