sd/source/ui/view/drviewse.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit dbd0e8bf94f20aa399e0330d60ca108e12a85581
Author: Maya Stephens <[email protected]>
AuthorDate: Fri Aug 22 13:54:31 2025 +0000
Commit: Michael Stahl <[email protected]>
CommitDate: Tue Sep 9 16:08:24 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 <[email protected]>
Tested-by: Jenkins CollaboraOffice <[email protected]>
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx
index d05a0bf9aa13..eaad51be823c 100644
--- a/sd/source/ui/view/drviewse.cxx
+++ b/sd/source/ui/view/drviewse.cxx
@@ -1676,6 +1676,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& )