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

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 17 23:59:42 UTC 2020


 vcl/source/window/toolbox2.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit cb3f23082e74c291720c8cd56f23e9d752b6fe76
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Sat Feb 15 21:31:19 2020 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Tue Feb 18 00:59:01 2020 +0100

    jsdialog: don't report hidden toolbox items as present.
    
    Change-Id: I965d41b15c437965b605e70b228f4da6ccbeb857
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88766
    Tested-by: Michael Meeks <michael.meeks at collabora.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 68cf9a383085..3d1bcd7d1739 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1760,6 +1760,8 @@ boost::property_tree::ptree ToolBox::DumpAsPropertyTree()
             {
                 boost::property_tree::ptree aEntry;
                 int nId = GetItemId(i);
+                if (!IsItemVisible(nId))
+                    continue;
                 aEntry.put("type", "toolitem");
                 aEntry.put("text", GetItemText(nId));
                 aEntry.put("command", GetItemCommand(nId));


More information about the Libreoffice-commits mailing list