[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Thu Sep 25 05:24:17 PDT 2014
sw/source/core/text/EnhancedPDFExportHelper.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 86af599c81dc695400b0cc999f559bcf9070e8b9
Author: Julien Nabet <serval2412 at 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 <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 68b8d4c..5d9a488 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() )
{
More information about the Libreoffice-commits
mailing list