]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #6270: Bug in parsing selection as math macro argument
authorEnrico Forestieri <forenr@lyx.org>
Sat, 10 Oct 2009 19:11:23 +0000 (19:11 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 10 Oct 2009 19:11:23 +0000 (19:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31582 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp

index 9b6c82dcd852028e956cdc8ec76fbad55a406bac..eedc70725dcdbf2eee05d4ce0ab415acbf56cd24 100644 (file)
@@ -1423,7 +1423,8 @@ bool Cursor::macroModeClose()
        InsetMathUnknown * p = activeMacro();
        p->finalize();
        MathData selection;
-       asArray(p->selection(), selection);
+       // enclose selection in braces (bug #6270)
+       asArray('{' + p->selection() + '}', selection);
        docstring const s = p->name();
        --pos();
        cell().erase(pos());