Fix crash after b0937fb9.

Now the cursor is not left inside color inset, so it is not needed to
pop_back.

Fix bug #12035.
This commit is contained in:
Jean-Marc Lasgouttes 2020-12-17 20:32:06 +01:00
parent 12285354e0
commit 005f69de23

View File

@ -499,11 +499,6 @@ void InsetMathNest::handleNest(Cursor & cur, MathAtom const & nest,
//
cur.handleNest(nest);
cur.insert(arg);
// cur is in the font inset now. If the loop continues,
// we need to get outside again for the next cell
if (col + 1 <= c2 || row + 1 <= r2)
cur.pop_back();
}
}
}