summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-02 12:58:47 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2021-02-03 11:09:46 +0100
commit01f2379603de09ba1b5e979166e4b5d60a90c1d5 (patch)
tree3266c2b70386adb62d43e0b8d31bd4404e5243c4 /embeddedobj
parentc69d1552b6ad37f237513c6a0ff7ef3396742482 (diff)
tdf#140079 Claim support for the OleEmbeddedObject::doVerb -9 fallback
So in SfxViewFrame::GetState_Impl in case SID_OBJECT hasVerbs is not empty, so that the doVerb attempt with -9 fallback is attempted Change-Id: If32c50fedbc2a269ac277061c76a63514d320bb7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110299 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/oleembed.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index b22ece2f7cea..ce360817f25c 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -1004,7 +1004,12 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL OleEmbeddedObject::getSupportedV
else
#endif
{
- return uno::Sequence< embed::VerbDescriptor >();
+ // tdf#140079 Claim support for the OleEmbeddedObject::doVerb -9 fallback.
+ // So in SfxViewFrame::GetState_Impl in case SID_OBJECT hasVerbs is not
+ // empty, so that the doVerb attempt with -9 fallback is attempted
+ uno::Sequence<embed::VerbDescriptor> aRet(1);
+ aRet[0].VerbID = -9;
+ return aRet;
}
}