diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-09-24 21:26:59 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-25 12:23:42 +0000 |
commit | 86af599c81dc695400b0cc999f559bcf9070e8b9 (patch) | |
tree | 75eb5105719de736ecd33821548d37f187cbcc81 | |
parent | 62deb6d6227105d67e46dbfb89a43dc5e510791a (diff) |
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/11634
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/text/EnhancedPDFExportHelper.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 68b8d4c3c866..5d9a4880ba59 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -1934,11 +1934,15 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport() SwRects aTmp; aTmp.insert( aTmp.begin(), mrSh.SwCrsrShell::_GetCrsr()->begin(), mrSh.SwCrsrShell::_GetCrsr()->end() ); OSL_ENSURE( !aTmp.empty(), "Enhanced pdf export - rectangles are missing" ); - const SwRect aLinkRect( aTmp[ 0 ] ); mrSh._GetCrsr()->RestoreSavePos(); mrSh.SwCrsrShell::ClearMark(); + if (aTmp.empty()) + continue; + + const SwRect aLinkRect( aTmp[ 0 ] ); + // Goto footnote text: if ( mrSh.GotoFtnTxt() ) { |