From: Enrico Forestieri Date: Sat, 10 Oct 2009 19:11:23 +0000 (+0000) Subject: Fix bug #6270: Bug in parsing selection as math macro argument X-Git-Tag: 2.0.0~5385 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3cce787c6ce23eec605139a068027f50677ccc82;p=lyx.git Fix bug #6270: Bug in parsing selection as math macro argument git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31582 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 9b6c82dcd8..eedc70725d 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -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());