Graceful assertion in release mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26414 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-09-15 16:07:53 +00:00
parent 1070eeb9ac
commit 1199f092d4

View File

@ -458,7 +458,7 @@ void Paragraph::insertInset(pos_type pos, Inset * inset,
bool Paragraph::eraseChar(pos_type pos, bool trackChanges) 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() // keep the logic here in sync with the logic of isMergedOnEndOfParDeletion()