From: Abdelrazak Younes Date: Sun, 13 Mar 2011 16:38:36 +0000 (+0000) Subject: TextMetrics::editXY(): don't continue executing code when asserting. X-Git-Tag: 2.0.0~535 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8d06c1ebda46477cccd2a0cde127c931e9ded1d7;p=features.git 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 --- 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.