]> git.lyx.org Git - features.git/commitdiff
Fix crash after b0937fb9.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 17 Dec 2020 19:32:06 +0000 (20:32 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 17 Dec 2020 21:04:46 +0000 (22:04 +0100)
Now the cursor is not left inside color inset, so it is not needed to
pop_back.

Fix bug #12035.

src/mathed/InsetMathNest.cpp

index 44f4a26805663e2976f5b44fe0c9f878e3d37e74..3dd55e44d11c8772bcac751fd8ecf2ceb7629705 100644 (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();
                }
        }
 }