mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
* 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:
parent
180eb073b2
commit
cfb2fe0a8f
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user