forms/source/component/clickableimage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 45963cfb6b453cf18aaa7534f20c35a38975dc89 Author: Julien Nabet <[email protected]> AuthorDate: Wed Dec 2 00:05:14 2020 +0100 Commit: Lionel Mamane <[email protected]> CommitDate: Sat Jan 16 01:47:14 2021 +0100 tdf#46579: fix form fields 'Image Button' in Forms urls have this form: .uno:FormController/moveToFirst .uno:FormController/moveToPrev etc. So we must use these links for hyperlinks + interceptor with ControlFeatureInterception + includes https://gerrit.libreoffice.org/c/core/+/107158 Change-Id: I9cff19833d859624239ca6c76152cc88f9cbb278 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107037 Reviewed-by: Julien Nabet <[email protected]> (cherry picked from commit 07be45d03f80fa681c697ca9f5a13084a81c7a26) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107099 Tested-by: Jenkins Reviewed-by: Eike Rathke <[email protected]> Reviewed-by: Lionel Mamane <[email protected]> diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx index 68861e42cf30..bc2a2ba739e5 100644 --- a/forms/source/component/clickableimage.cxx +++ b/forms/source/component/clickableimage.cxx @@ -310,9 +310,9 @@ namespace frm } else { - URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURLFromAscii( ".uno:OpenHyperlink" ); + URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURL(aURL.Complete); - Reference< XDispatch > xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY_THROW)->queryDispatch(aHyperLink, OUString() , 0); + Reference< XDispatch > xDisp = m_pFeatureInterception->queryDispatch(aHyperLink); if ( xDisp.is() ) { _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
