diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-08 09:06:45 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-12-18 22:21:34 +0100 |
commit | 92990e87a66758189e3324995ebe29cc026687a2 (patch) | |
tree | cbd782b7f8f0a1de3800d40c1272ec64614dc3aa /sfx2 | |
parent | d85a3887bf36ff1e4dddb111f2c5634b66eb9510 (diff) |
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@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |