mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3023 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
706b39f788
commit
ebcc9580c9
@ -463,8 +463,8 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
|
|||||||
|
|
||||||
case LFUN_MATH_DISPLAY:
|
case LFUN_MATH_DISPLAY:
|
||||||
{
|
{
|
||||||
int x;
|
int x = 0;
|
||||||
int y;
|
int y = 0;
|
||||||
mathcursor->getPos(x, y);
|
mathcursor->getPos(x, y);
|
||||||
if (mat()->getType() == LM_OT_SIMPLE)
|
if (mat()->getType() == LM_OT_SIMPLE)
|
||||||
mat()->mutate(LM_OT_EQUATION);
|
mat()->mutate(LM_OT_EQUATION);
|
||||||
@ -491,6 +491,7 @@ InsetFormula::localDispatch(BufferView * bv, kb_action action,
|
|||||||
mat()->addCol(mat()->ncols());
|
mat()->addCol(mat()->ncols());
|
||||||
mathcursor->normalize();
|
mathcursor->normalize();
|
||||||
updateLocal(bv, true);
|
updateLocal(bv, true);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -418,10 +418,10 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
bv->updateInset(this, true);
|
bv->updateInset(this, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// case LFUN_GETXY:
|
// case LFUN_GETXY:
|
||||||
// sprintf(dispatch_buffer, "%d %d",);
|
// sprintf(dispatch_buffer, "%d %d",);
|
||||||
// dispatch_result = dispatch_buffer;
|
// dispatch_result = dispatch_buffer;
|
||||||
// break;
|
// break;
|
||||||
case LFUN_SETXY: {
|
case LFUN_SETXY: {
|
||||||
lyxerr << "LFUN_SETXY broken!\n";
|
lyxerr << "LFUN_SETXY broken!\n";
|
||||||
int x = 0;
|
int x = 0;
|
||||||
@ -611,12 +611,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
|
|||||||
}
|
}
|
||||||
|
|
||||||
lyx::Assert(mathcursor);
|
lyx::Assert(mathcursor);
|
||||||
//mathcursor->normalize();
|
|
||||||
|
|
||||||
if (//was_macro != mathcursor->inMacroMode() &&
|
|
||||||
action >= 0 && action != LFUN_BACKSPACE)
|
|
||||||
updateLocal(bv, true);
|
|
||||||
|
|
||||||
if (mathcursor->selection() || was_selection)
|
if (mathcursor->selection() || was_selection)
|
||||||
toggleInsetSelection(bv);
|
toggleInsetSelection(bv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user