diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-03-21 13:15:04 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-03-21 13:15:04 +0100 |
commit | 60417330bd4caf19deb53fd740645d3eb4a90861 (patch) | |
tree | 6ca8078130b4ed99b657c0ccc91be26cb4f8db80 | |
parent | fs34b: #i117039# restore old behavior of SfxUndoManager::EnableUndo: don't co... (diff) | |
parent | dba34d: pulled and merged DEV300.m102 (diff) | |
download | core-60417330bd4caf19deb53fd740645d3eb4a90861.tar.gz core-60417330bd4caf19deb53fd740645d3eb4a90861.zip |
fs34b: pulled and merged CWS dba34d
-rw-r--r-- | sw/source/core/text/EnhancedPDFExportHelper.cxx | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sw/source/core/text/EnhancedPDFExportHelper.cxx b/sw/source/core/text/EnhancedPDFExportHelper.cxx index 7d777089fb7f..c646187eb8f4 100644 --- a/sw/source/core/text/EnhancedPDFExportHelper.cxx +++ b/sw/source/core/text/EnhancedPDFExportHelper.cxx @@ -2106,12 +2106,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 |