From d88caf97cb3621812f972f753bf225a6f27b3a5d Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 13 Sep 2008 17:12:01 +0000 Subject: [PATCH] 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 --- src/Paragraph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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_; } -- 2.39.5