summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2011-03-04 07:53:39 +0100
committerOcke Janssen <oj@openoffice.org>2011-03-04 07:53:39 +0100
commitc3fd001f6178efa4db03e1277f1c12e395ccfaed (patch)
treedf994747708e08ea608ee5d12514d4b19e348ed9 /sc/source/ui
parentce6308e4fad2281241bf4ca78280eba29f744d43 (diff)
parentc3e2f4768a46a4a1545d9f7385b242c5a79553ae (diff)
Automated merge with file:///d:\tools\master\ooo
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 23eb1abd2d82..f6250cdd8cb4 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1268,7 +1268,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