From 8d06c1ebda46477cccd2a0cde127c931e9ded1d7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 13 Mar 2011 16:38:36 +0000 Subject: [PATCH] TextMetrics::editXY(): don't continue executing code when asserting. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37915 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 2a74ddd1d7..085040990d 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -1495,7 +1495,7 @@ Inset * TextMetrics::editXY(Cursor & cur, int x, int y, // This should be just before or just behind the // cursor position set above. LASSERT(inset == inset_before - || inset == pars[pit].getInset(pos), /**/); + || inset == pars[pit].getInset(pos), return 0); // Make sure the cursor points to the position before // this inset. -- 2.39.2