[Libreoffice-commits] core.git: embeddedobj/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Feb 2 20:17:27 UTC 2021


 embeddedobj/source/msole/oleembed.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 2d084836102fdf3a486bd8c01f55ae0a5a673d10
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Feb 2 12:58:47 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Feb 2 21:16:34 2021 +0100

    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 at redhat.com>

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;
     }
 }
 


More information about the Libreoffice-commits mailing list