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
This commit is contained in:
Abdelrazak Younes 2011-03-13 16:38:36 +00:00
parent 076151f508
commit 8d06c1ebda

View File

@ -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.