]> git.lyx.org Git - features.git/commitdiff
Graceful assertion in release mode.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 15 Sep 2008 16:07:53 +0000 (16:07 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 15 Sep 2008 16:07:53 +0000 (16:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26414 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 1a5ac5f6156fde62baa4e52c2faac176067f5be2..2baa9b922e9ae4703fd3524f86c776835c5c56a8 100644 (file)
@@ -458,7 +458,7 @@ void Paragraph::insertInset(pos_type pos, Inset * inset,
 
 bool Paragraph::eraseChar(pos_type pos, bool trackChanges)
 {
-       LASSERT(pos >= 0 && pos <= size(), /**/);
+       LASSERT(pos >= 0 && pos <= size(), return false);
 
        // keep the logic here in sync with the logic of isMergedOnEndOfParDeletion()