From: Abdelrazak Younes Date: Sat, 13 Sep 2008 17:12:01 +0000 (+0000) Subject: exit(10) was a bit extreme... replace with a Buffer exception. X-Git-Tag: 1.6.10~3472 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d88caf97cb3621812f972f753bf225a6f27b3a5d;p=lyx.git exit(10) was a bit extreme... replace with a Buffer exception. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26386 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 5ab65b49a4..1a5ac5f615 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -52,6 +52,7 @@ #include "support/lassert.h" #include "support/convert.h" #include "support/debug.h" +#include "support/ExceptionMessage.h" #include "support/gettext.h" #include "support/lstrings.h" #include "support/Messages.h" @@ -2416,7 +2417,8 @@ void Paragraph::setPlainOrDefaultLayout(DocumentClass const & tclass) Inset const & Paragraph::inInset() const { - LASSERT(d->inset_owner_, exit(10)); + LASSERT(d->inset_owner_, throw ExceptionMessage(BufferException, + _("Memory problem"), _("Paragraph not properly initiliazed"))); return *d->inset_owner_; }