diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:49:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:49:07 +0000 |
commit | 0c876483d278e3e5ba43e9eaf40ca713b6099703 (patch) | |
tree | 6be1acb84bcda5c158735b6300c2127d8f1d7299 | |
parent | 22ee3194c930682ad8ac7f994084e877aa00d191 (diff) |
guard against missing table layout
Change-Id: I4bc7a7283f63124ccb50957ea64791644e01e267
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 3 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwprowlayout.cxx | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index abe2c0297717..3848cb6a9f90 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -696,6 +696,9 @@ void LwpConnectedCellLayout::SetCellMap() { // this function is called from LwpTableLayout, so it can't be NULL LwpTableLayout * pTableLayout = GetTableLayout(); + if (!pTableLayout) + return; + sal_uInt16 nRowSpan = m_nRealrowspan; for (sal_uInt16 iLoop = 0; iLoop < nRowSpan; iLoop ++) diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx index 507a8490fcff..906c09cdb052 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -363,11 +363,14 @@ sal_uInt16 LwpRowLayout::GetCurMaxSpannedRows(sal_uInt8 nStartCol,sal_uInt8 nEnd */ void LwpRowLayout::ConvertCommonRow(XFTable* pXFTable,sal_uInt8 nStartCol,sal_uInt8 nEndCol) { + LwpTableLayout* pTableLayout = GetParentTableLayout(); + if (!pTableLayout) + return; + XFRow* pRow = new XFRow; pRow->SetStyleName(m_StyleName); XFCell * pCell = nullptr; - LwpTableLayout* pTableLayout = GetParentTableLayout(); LwpTable* pTable = pTableLayout->GetTable(); sal_uInt8 nCellStartCol,nCellEndCol; |