mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
*** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6274 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e53e0e8758
commit
f42d2f134a
@ -812,13 +812,14 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
|
||||
split(body, trimmed, '\n');
|
||||
lyxerr << "passing '" << trimmed << "' to the math parser\n";
|
||||
|
||||
MathAtom at;
|
||||
if (!mathed_parse_normal(at, trimmed)) {
|
||||
MathArray ar;
|
||||
mathed_parse_cell(ar, trimmed);
|
||||
if (ar.size() != 1) {
|
||||
result = UNDISPATCHED;
|
||||
break;
|
||||
}
|
||||
|
||||
RefInset * tmp = at.nucleus()->asRefInset();
|
||||
RefInset * tmp = ar[0].nucleus()->asRefInset();
|
||||
if (!tmp) {
|
||||
result = UNDISPATCHED;
|
||||
break;
|
||||
@ -835,7 +836,7 @@ dispatch_result InsetFormulaBase::localDispatch(FuncRequest const & cmd)
|
||||
|
||||
*inset = *tmp;
|
||||
} else {
|
||||
mathcursor->insert(at);
|
||||
mathcursor->insert(ar);
|
||||
}
|
||||
updateLocal(bv, true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user