From: Abdelrazak Younes Date: Thu, 28 Feb 2008 12:29:33 +0000 (+0000) Subject: * Inset::buffer(): change to an ErrorException as this can be bad enough to provoke... X-Git-Tag: 1.6.10~6019 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=cfb2fe0a8f9ff112431e2d21bf7aff1035064719;p=lyx.git * 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 --- 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_;