diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-06 11:38:55 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-09-07 18:35:45 +0200 |
commit | 60711395552923a1a98b7d83bff5cc6d190f1a1a (patch) | |
tree | 9c63d2326a9b9a7c8152dde59201f3a29bcc6024 | |
parent | Revert naming back to lool to fix break with LibreOffice Online (diff) | |
download | core-60711395552923a1a98b7d83bff5cc6d190f1a1a.tar.gz core-60711395552923a1a98b7d83bff5cc6d190f1a1a.zip |
check impress/calc IFrame "FrameURL" target
similar to
commit c7450d0b9d02c64ae3da467d329040787039767e
Date: Tue Aug 30 17:01:08 2022 +0100
check IFrame "FrameURL" target
Change-Id: Ibf28c29acb4476830431d02772f3ecd4b23a6a27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139495
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | xmloff/source/draw/ximpshap.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 442116980270..f628530bee7e 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -87,6 +87,7 @@ #include <basegfx/polygon/b2dpolypolygon.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> #include <basegfx/vector/b2dvector.hxx> +#include <tools/urlobj.hxx> #include <o3tl/any.hxx> #include <o3tl/safeint.hxx> @@ -3141,6 +3142,9 @@ void SdXMLFloatingFrameShapeContext::startFastElement (sal_Int32 /*nElement*/, if( !maHref.isEmpty() ) { + if (INetURLObject(maHref).GetProtocol() == INetProtocol::Macro) + GetImport().NotifyMacroEventRead(); + xProps->setPropertyValue("FrameURL", Any(maHref) ); } } |