From 1199f092d4463d84b5b752ca2df0f61354fedb85 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 15 Sep 2008 16:07:53 +0000 Subject: [PATCH] Graceful assertion in release mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26414 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 1a5ac5f615..2baa9b922e 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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()