]> git.lyx.org Git - features.git/commitdiff
TextMetrics::editXY(): don't continue executing code when asserting.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 13 Mar 2011 16:38:36 +0000 (16:38 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 13 Mar 2011 16:38:36 +0000 (16:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37915 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 2a74ddd1d797ab4788bcf30a3fe2edbe0a8ba507..085040990dfe8f8da9089b0a291c901704f0b8a9 100644 (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.