From f42d2f134ac120fdf15f60a767b85f76cb3bebac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 26 Feb 2003 09:06:18 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6274 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formulabase.C | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index 98474106e1..c3113c815f 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -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); } -- 2.39.5