From: Jean-Marc Lasgouttes Date: Thu, 17 Dec 2020 19:32:06 +0000 (+0100) Subject: Fix crash after b0937fb9. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=005f69de2307712d20e42d2f84fb7aa1d78d38fb;p=features.git Fix crash after b0937fb9. Now the cursor is not left inside color inset, so it is not needed to pop_back. Fix bug #12035. --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 44f4a26805..3dd55e44d1 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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(); } } }