summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2011-03-21 17:02:20 +0100
committerVladimir Glazunov <vg@openoffice.org>2011-03-21 17:02:20 +0100
commitbdcd1807bd92579d9b9474518ec33b415f5a6615 (patch)
treed8f9ba7a22d9a02a6aea594e25c0d1642875968a
parent94ea22c482ec7cf2b28168b625b8411c0bcd3c76 (diff)
parent87918bd67e99049ea5521b462b8e80227d01c4fc (diff)
CWS-TOOLING: integrate CWS dba34c
-rw-r--r--sw/source/core/text/EnhancedPDFExportHelper.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx
index 6b0f12f526..84dd6b71b5 100644
--- a/sw/source/core/text/EnhancedPDFExportHelper.cxx
+++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx
@@ -2100,12 +2100,18 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
if ( -1 != nDestPageNum )
{
- // Destination Export
- const sal_Int32 nDestId =
- pPDFExtOutDevData->CreateDest( rDestRect.SVRect(), nDestPageNum );
+ if ( aIBeg->nLinkId != -1 )
+ {
+ // Destination Export
+ const sal_Int32 nDestId = pPDFExtOutDevData->CreateDest( rDestRect.SVRect(), nDestPageNum );
- // Connect Link and Destination:
- pPDFExtOutDevData->SetLinkDest( aIBeg->nLinkId, nDestId );
+ // Connect Link and Destination:
+ pPDFExtOutDevData->SetLinkDest( aIBeg->nLinkId, nDestId );
+ }
+ else
+ {
+ pPDFExtOutDevData->DescribeRegisteredDest( aIBeg->nDestId, rDestRect.SVRect(), nDestPageNum );
+ }
}
}
else