From 3cce787c6ce23eec605139a068027f50677ccc82 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 10 Oct 2009 19:11:23 +0000 Subject: [PATCH] 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 --- src/Cursor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- 2.39.2