Kaydet (Commit) 86af599c authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Caolán McNamara

Resolves fdo#84283: Export to PDF with footnotes in tables crash

Don't crash when there's no rectangles

Change-Id: I7e713025cacd449f708176254e05d40c0929577f
Reviewed-on: https://gerrit.libreoffice.org/11634Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 62deb6d6
...@@ -1934,11 +1934,15 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport() ...@@ -1934,11 +1934,15 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
SwRects aTmp; SwRects aTmp;
aTmp.insert( aTmp.begin(), mrSh.SwCrsrShell::_GetCrsr()->begin(), mrSh.SwCrsrShell::_GetCrsr()->end() ); aTmp.insert( aTmp.begin(), mrSh.SwCrsrShell::_GetCrsr()->begin(), mrSh.SwCrsrShell::_GetCrsr()->end() );
OSL_ENSURE( !aTmp.empty(), "Enhanced pdf export - rectangles are missing" ); OSL_ENSURE( !aTmp.empty(), "Enhanced pdf export - rectangles are missing" );
const SwRect aLinkRect( aTmp[ 0 ] );
mrSh._GetCrsr()->RestoreSavePos(); mrSh._GetCrsr()->RestoreSavePos();
mrSh.SwCrsrShell::ClearMark(); mrSh.SwCrsrShell::ClearMark();
if (aTmp.empty())
continue;
const SwRect aLinkRect( aTmp[ 0 ] );
// Goto footnote text: // Goto footnote text:
if ( mrSh.GotoFtnTxt() ) if ( mrSh.GotoFtnTxt() )
{ {
......
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