summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-02 12:58:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-02-02 21:16:34 +0100
commit2d084836102fdf3a486bd8c01f55ae0a5a673d10 (patch)
tree41fce1ed09f1c17cfc02366bd166c5f6f617dc3b /embeddedobj
parentb1fb6338cf483a1fd8c4a16746c8f7c3af8cba9e (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/+/110316 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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 890457af909f..926f5b9e9393 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;
}
}