mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +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_) {
|
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_;
|
||||||
|
Loading…
Reference in New Issue
Block a user