* 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
This commit is contained in:
Abdelrazak Younes 2008-02-28 12:29:33 +00:00
parent 180eb073b2
commit cfb2fe0a8f

View File

@ -129,8 +129,8 @@ Buffer & Inset::buffer()
{ {
if (!buffer_) { if (!buffer_) {
odocstringstream s; odocstringstream s;
s << "LyX Code: " << lyxCode(); s << "LyX Code: " << lyxCode() << " name: " << name();
throw ExceptionMessage(WarningException, throw ExceptionMessage(ErrorException,
from_ascii("Inset::buffer_ member not initialized!"), s.str()); from_ascii("Inset::buffer_ member not initialized!"), s.str());
} }
return *buffer_; return *buffer_;