mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
bugfix (invalid cursor position)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2222 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6396f9a204
commit
4dd6a8932e
@ -262,14 +262,21 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
|
||||
}
|
||||
|
||||
case LFUN_MATH_DISPLAY:
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
mathcursor->GetPos(x, y);
|
||||
if (par()->GetType() == LM_OT_SIMPLE) {
|
||||
par()->mutate(LM_OT_EQUATION);
|
||||
par()->numbered(0, false);
|
||||
}
|
||||
else
|
||||
par()->mutate(LM_OT_SIMPLE);
|
||||
mathcursor->SetPos(x, y);
|
||||
mathcursor->normalize();
|
||||
updateLocal(bv);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
result = InsetFormulaBase::localDispatch(bv, action, arg);
|
||||
|
Loading…
Reference in New Issue
Block a user