]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
A couple comments and some very minor cleanup.
[lyx.git] / 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());