vcl/source/window/toolbox2.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 9a321fad30a3f7a2d1048ad00285d7a2bcd3ba2e
Author: Szymon Kłos <[email protected]>
AuthorDate: Wed Jul 14 12:00:25 2021 +0200
Commit: Szymon Kłos <[email protected]>
CommitDate: Wed Jul 14 15:23:51 2021 +0200
jsdialog: dump selected state for toolitems
Change-Id: I8c2c017168e4feae6e24118153906ee24ed90a5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118893
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Szymon Kłos <[email protected]>
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index 4538fcf23e58..55047743a3ed 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1753,6 +1753,8 @@ void ToolBox::DumpAsPropertyTree(tools::JsonWriter&
rJsonWriter)
rJsonWriter.put("type", "toolitem");
rJsonWriter.put("text", GetItemText(nId));
rJsonWriter.put("command", sCommand);
+ if (IsItemChecked(nId))
+ rJsonWriter.put("selected", true);
if (!IsItemVisible(nId))
rJsonWriter.put("visible", false);
if (GetItemBits(nId) & ToolBoxItemBits::DROPDOWN)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits