Kaydet (Commit) 453e6fb7 authored tarafından Caolán McNamara's avatar Caolán McNamara

forcepoint#79 FindStartEndOfRowSpanCell returning null

Change-Id: I85f5b17b7dc2d3c4dfef92f64451fab451f58112
Reviewed-on: https://gerrit.libreoffice.org/70927
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 228723ea
This diff was suppressed by a .gitattributes entry.
......@@ -2564,6 +2564,9 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testForcepoint75)
//just care it doesn't crash/assert
CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testForcepoint76) { createDoc("forcepoint76-1.rtf"); }
//just care it doesn't crash/assert
CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testForcepoint79) { createDoc("forcepoint79-1.doc"); }
CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf118058)
{
SwDoc* pDoc = createDoc("tdf118058.fodt");
......
......@@ -1668,8 +1668,6 @@ SwCellFrame* SwCellFrame::GetPreviousCell() const
// --> NEW TABLES
const SwCellFrame& SwCellFrame::FindStartEndOfRowSpanCell( bool bStart ) const
{
const SwCellFrame* pRet = nullptr;
const SwTabFrame* pTableFrame = dynamic_cast<const SwTabFrame*>(GetUpper()->GetUpper());
if ( !bStart && pTableFrame && pTableFrame->IsFollow() && pTableFrame->IsInHeadline( *this ) )
......@@ -1726,17 +1724,17 @@ const SwCellFrame& SwCellFrame::FindStartEndOfRowSpanCell( bool bStart ) const
if ( pMasterTable == pTableFrame )
{
pRet = pMasterCell;
break;
return *pMasterCell;
}
}
}
}
assert(pRet && "SwCellFrame::FindStartRowSpanCell: No result");
SAL_WARN("sw.core", "SwCellFrame::FindStartRowSpanCell: No result");
return *pRet;
return *this;
}
// <-- NEW TABLES
const SwRowFrame* SwFrame::IsInSplitTableRow() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment