* Inset::buffer(): assert when buffer_ is not set.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23557 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-03-08 11:56:20 +00:00
parent 9398a1495a
commit 6e807d67ec

View File

@ -130,6 +130,7 @@ Buffer & Inset::buffer()
if (!buffer_) {
odocstringstream s;
s << "LyX Code: " << lyxCode() << " name: " << name();
BOOST_ASSERT(false);
throw ExceptionMessage(BufferException,
from_ascii("Inset::buffer_ member not initialized!"), s.str());
}