diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-08 09:06:45 -0400 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-04-29 09:53:02 +0200 |
commit | 4fde580fc3d30723220a90853eea5c564bc825a5 (patch) | |
tree | ded7e5a3b399b3639ec3d2117e44e725aa69bbe2 /sfx2 | |
parent | 20cba8366bc580356f63e31e3fd68d2fa7583062 (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>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114802
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@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 9c0c37041f58..e20ef9be1794 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); } } |