Fix bug #6270: Bug in parsing selection as math macro argument

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31594 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-10-11 15:37:31 +00:00
parent 731d84f8b0
commit ee2bbb8d89
2 changed files with 4 additions and 1 deletions

View File

@ -1448,7 +1448,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());

View File

@ -186,6 +186,8 @@ What's new
- Fix undo of removed script in mathed when both super- and subscript
are present (bug 6264).
- Fix parsing of selection when used as argument of a math macro (bug 6270).
* DOCUMENTATION AND LOCALIZATION