[Libreoffice-commits] core.git: forms/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 2 20:02:31 UTC 2020
forms/source/component/clickableimage.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 07be45d03f80fa681c697ca9f5a13084a81c7a26
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Wed Dec 2 00:05:14 2020 +0100
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Wed Dec 2 21:01:45 2020 +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
Change-Id: I9cff19833d859624239ca6c76152cc88f9cbb278
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107037
Tested-by: Jenkins
Reviewed-by: Lionel Mamane <lionel at mamane.lu>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx
index e3d19da934db..431506adbf1f 100644
--- a/forms/source/component/clickableimage.cxx
+++ b/forms/source/component/clickableimage.cxx
@@ -311,9 +311,9 @@ namespace frm
}
else
{
- URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURLFromAscii( ".uno:OpenHyperlink" );
+ URL aHyperLink = m_pFeatureInterception->getTransformer().getStrictURLFromAscii( OUStringToOString(aURL.Complete, RTL_TEXTENCODING_ASCII_US).getStr() );
- Reference< XDispatch > xDisp = Reference< XDispatchProvider > (xFrame,UNO_QUERY_THROW)->queryDispatch(aHyperLink, OUString() , 0);
+ Reference< XDispatch > xDisp = m_pFeatureInterception->queryDispatch(aHyperLink);
if ( xDisp.is() )
{
More information about the Libreoffice-commits
mailing list