diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx index de4e0b12789e9..9760dd7a5e242 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -283,14 +283,15 @@ void LwpRowLayout::RegisterCurRowStyle(XFRow* pXFRow,sal_uInt16 nRowMark) { pRowStyle = static_cast( pXFStyleManager->FindStyle(pTableLayout->GetDefaultRowStyleName())); - fHeight += pRowStyle->GetRowHeight(); } else { pRowStyle = static_cast( pXFStyleManager->FindStyle(iter->second->GetStyleName())); - fHeight+=pRowStyle->GetRowHeight(); } + if (!pRowStyle) + throw std::runtime_error("missing RowStyle"); + fHeight += pRowStyle->GetRowHeight(); } if (m_nDirection & 0x0030)