diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-01 09:57:05 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2010-12-01 09:57:05 +0100 |
commit | 24984aa7a473b53daea4c8b077dc82d79c2b6f10 (patch) | |
tree | e903137dc8c9f02b31a37db06cfe866fc22dbbba /sc/source/ui/unoobj | |
parent | a555878a353d25be47093e101371339d6e73a3b7 (diff) |
dba34b: #i113555# when a button's URL points to a document-local target, properly export this to PDF
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 86a8b4d42530..87153b033788 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1262,7 +1262,12 @@ void SAL_CALL ScModelObj::render( sal_Int32 nSelRenderer, const uno::Any& aSelec } if ( nPage >= 0 ) - pPDFData->SetLinkDest( aIter->nLinkId, pPDFData->CreateDest( aArea, nPage ) ); + { + if ( aIter->nLinkId != -1 ) + pPDFData->SetLinkDest( aIter->nLinkId, pPDFData->CreateDest( aArea, nPage ) ); + else + pPDFData->DescribeRegisteredDest( aIter->nDestId, aArea, nPage ); + } } } else |