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

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Fri Mar 12 15:01:49 UTC 2021


 sfx2/source/devtools/ObjectInspectorTreeHandler.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit ee88afa23e86c20a355ccf00e5d7321d44ad56db
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Thu Mar 4 22:11:56 2021 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Mar 12 16:00:58 2021 +0100

    devtools: don't show the expander if the object has no value
    
    Change-Id: I2aa742c70ed3eab8b56d16e9d846d5bc21223c4e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112113
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index ea864bb7a8f1..42d5f163e75b 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -366,6 +366,10 @@ public:
             switch (maAny.getValueType().getTypeClass())
             {
                 case uno::TypeClass_INTERFACE:
+                {
+                    uno::Reference<uno::XInterface> xInterface(maAny, uno::UNO_QUERY);
+                    return xInterface.is();
+                }
                 case uno::TypeClass_SEQUENCE:
                     return true;
                 default:


More information about the Libreoffice-commits mailing list