mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
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:
parent
60ccb16240
commit
cf629f4331
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user