[Libreoffice-commits] core.git: sfx2/source
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Fri Dec 18 21:22:21 UTC 2020
sfx2/source/sidebar/Deck.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 92990e87a66758189e3324995ebe29cc026687a2
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Dec 8 09:06:45 2020 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Fri Dec 18 22:21:34 2020 +0100
lok: fix "children" node type
In order to build the dialog on the client side,
the "children" object should be constructed with array type.
Change-Id: Iccde39aa9ff2f423fd4a67072ca0bf25e406d220
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107413
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro at collabora.com>
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index 4a05db81f000..0cd35d9e819f 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -200,7 +200,7 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
rJsonWriter.put("text", GetText());
rJsonWriter.put("enabled", IsEnabled());
- auto childrenNode = rJsonWriter.startNode("children");
+ auto childrenNode = rJsonWriter.startArray("children");
for (auto &it : maPanels)
{
if (it->IsLurking())
@@ -214,13 +214,13 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
if (!pWindow)
continue;
- auto childNode = rJsonWriter.startNode("");
+ auto childNode = rJsonWriter.startStruct();
rJsonWriter.put("id", it->GetId());
rJsonWriter.put("type", "panel");
rJsonWriter.put("text", it->GetText());
rJsonWriter.put("enabled", it->IsEnabled());
- auto children2Node = rJsonWriter.startNode("children");
+ auto children2Node = rJsonWriter.startArray("children");
pWindow->DumpAsPropertyTree(rJsonWriter);
}
}
More information about the Libreoffice-commits
mailing list