diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2020-02-15 21:31:19 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-02-18 00:59:01 +0100 |
commit | cb3f23082e74c291720c8cd56f23e9d752b6fe76 (patch) | |
tree | 13f20a889b8af8df83e309048b0efd8e11b8a4aa /vcl | |
parent | 8aaf950decc7624cbf80dd9d67516ffc0a30f346 (diff) |
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@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |