From cfb2fe0a8f9ff112431e2d21bf7aff1035064719 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 28 Feb 2008 12:29:33 +0000 Subject: [PATCH] * Inset::buffer(): change to an ErrorException as this can be bad enough to provoke a crash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23310 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index 7598271704..2488017b1d 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -129,8 +129,8 @@ Buffer & Inset::buffer() { if (!buffer_) { odocstringstream s; - s << "LyX Code: " << lyxCode(); - throw ExceptionMessage(WarningException, + s << "LyX Code: " << lyxCode() << " name: " << name(); + throw ExceptionMessage(ErrorException, from_ascii("Inset::buffer_ member not initialized!"), s.str()); } return *buffer_;