[LyX/master] Fix crash after b0937fb9.

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Dec 17 20:34:59 UTC 2020


commit 005f69de2307712d20e42d2f84fb7aa1d78d38fb
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Thu Dec 17 20:32:06 2020 +0100

    Fix crash after b0937fb9.
    
    Now the cursor is not left inside color inset, so it is not needed to
    pop_back.
    
    Fix bug #12035.
---
 src/mathed/InsetMathNest.cpp |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp
index 44f4a26..3dd55e4 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();
 		}
 	}
 }


More information about the lyx-cvs mailing list