sd/source/ui/view/drviewse.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 2cbe0bdb0f4f4048227b9b8ff6463ca661eafc54 Author: Maya Stephens <maya.steph...@collabora.com> AuthorDate: Fri Aug 22 13:54:31 2025 +0000 Commit: Michael Stahl <michael.st...@collabora.com> CommitDate: Fri Sep 12 11:57:07 2025 +0200
tdf#156159: Properly set hyperlinks with draw/impress shapes/images Actually call setHyperlink when executing a SID_HYPERLINK_SETLINK command. For some reason, the hyperlink is stored twice, but only stored in one of them. This causes the hyperlinks to not be clickable/updated after being set until the document is saved and loaded. Change-Id: I6a6a696438bff2acdc81e72cd00a34c54f016f2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190074 Reviewed-by: Michael Stahl <michael.st...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> (cherry picked from commit dbd0e8bf94f20aa399e0330d60ca108e12a85581) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190822 Tested-by: Jenkins diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index 65129b2eba0a..d6fa2747c539 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -1675,6 +1675,7 @@ void DrawViewShell::InsertURLButton(const OUString& rURL, const OUString& rText, SdAnimationInfo* pInfo = SdDrawDocument::GetShapeUserData(*pMarkedObj, true); pInfo->meClickAction = presentation::ClickAction_DOCUMENT; pInfo->SetBookmark( sTargetURL ); + pMarkedObj->setHyperlink(rURL); } } catch( uno::Exception& )