add (needed) paranoia checks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8635 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2004-04-08 15:26:33 +00:00
parent 16da692bfb
commit 01661a4030

View File

@ -715,13 +715,13 @@ InsetBibitem * Paragraph::bibitem() const
bool Paragraph::forceDefaultParagraphs() const
{
return inInset()->forceDefaultParagraphs(inInset());
return inInset() && inInset()->forceDefaultParagraphs(inInset());
}
bool Paragraph::autoBreakRows() const
{
return static_cast<InsetText *>(inInset())->getAutoBreakRows();
return inInset() && static_cast<InsetText *>(inInset())->getAutoBreakRows();
}