summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-09-24 21:26:59 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-09-26 08:12:36 +0000
commitc67942a3158d4ace3753985dab5b9a934b8185a7 (patch)
tree3172710d2352c2cf3c3a14f79e28fac7efd36d88
parent14907346d792f2f93a00083bbab5086cf56ddb24 (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> Reviewed-on: https://gerrit.libreoffice.org/11645
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 6afa51d3fdc7..0704b91b33b0 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -1933,11 +1933,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() )
{