sw/source/core/text/EnhancedPDFExportHelper.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit c67942a3158d4ace3753985dab5b9a934b8185a7
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Wed Sep 24 21:26:59 2014 +0200

    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 <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/11645

diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx 
b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 6afa51d..0704b91 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() )
             {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to