]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Fix some group boxes.
[lyx.git] / src / Cursor.cpp
index a6d799ec9c81d5ba9efcf395b6f2e1dfe6e555ea..56a9dd872245c62f66f345c3679406f52f61f502 100644 (file)
@@ -1547,7 +1547,9 @@ void Cursor::niceInsert(MathAtom const & t)
        // If possible, enter the new inset and move the contents of the selection
        if (t->isActive()) {
                idx_type const idx = prevMath().asNestInset()->firstIdx();
-               asArray(safe, prevMath().cell(idx));
+               MathData ar(buffer());
+               asArray(safe, ar);
+               prevMath().cell(idx).insert(0, ar);
                editInsertedInset();
        } else if (t->asMacro() && !safe.empty()) {
                MathData ar(buffer());