]> git.lyx.org Git - features.git/commitdiff
exit(10) was a bit extreme... replace with a Buffer exception.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 13 Sep 2008 17:12:01 +0000 (17:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 13 Sep 2008 17:12:01 +0000 (17:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26386 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 5ab65b49a4603e75ea020d7cbf9d352f127416f8..1a5ac5f6156fde62baa4e52c2faac176067f5be2 100644 (file)
@@ -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_;
 }