vcl/source/control/tabctrl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit e14febcf8f70713ad30c768cfd1d775de6c30a2d Author: Szymon Kłos <[email protected]> AuthorDate: Mon Sep 27 15:37:59 2021 +0200 Commit: Szymon Kłos <[email protected]> CommitDate: Tue Sep 28 14:55:09 2021 +0200 jsdialog: dump tabs as array Change-Id: I187ea81c7b51f67aaa8d67b59aa5fcb5a4229941 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122711 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Szymon Kłos <[email protected]> diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index bab7684c2f31..0918ef6028b9 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2183,10 +2183,10 @@ void TabControl::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) { Control::DumpAsPropertyTree(rJsonWriter); { - auto tabsNode = rJsonWriter.startNode("tabs"); + auto tabsNode = rJsonWriter.startArray("tabs"); for(auto id : GetPageIDs()) { - auto tabNode = rJsonWriter.startNode(""); + auto tabNode = rJsonWriter.startStruct(); rJsonWriter.put("text", GetPageText(id)); rJsonWriter.put("id", id); rJsonWriter.put("name", GetPageName(id));
