summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-09-15 14:37:37 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2021-10-06 11:11:30 +0200
commit0ed940e3eb87c7048a1a8e6cfda14e7cef85d007 (patch)
tree7e1c0c3a1367aa8d0b3aab6fd4c0691539ca9654 /sc
parent57a628d540287c4bfa8251e50279f4879faa184d (diff)
lok json: write correctly formatted array for comments
Change-Id: Ia9a219f867ea00444844f6854f0b6af762d4e0af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122149 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123107 Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 7c5eafa81774..d1131d6f967b 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1112,10 +1112,10 @@ void ScModelObj::getPostIts(tools::JsonWriter& rJsonWriter)
std::vector<sc::NoteEntry> aNotes;
rDoc.GetAllNoteEntries(aNotes);
- auto commentsNode = rJsonWriter.startNode("comments");
+ auto commentsNode = rJsonWriter.startArray("comments");
for (const sc::NoteEntry& aNote : aNotes)
{
- auto commentNode = rJsonWriter.startNode("");
+ auto commentNode = rJsonWriter.startStruct();
rJsonWriter.put("id", aNote.mpNote->GetId());
rJsonWriter.put("tab", aNote.maPos.Tab());
@@ -1154,10 +1154,10 @@ void ScModelObj::getPostItsPos(tools::JsonWriter& rJsonWriter)
std::vector<sc::NoteEntry> aNotes;
rDoc.GetAllNoteEntries(aNotes);
- auto commentsNode = rJsonWriter.startNode("commentsPos");
+ auto commentsNode = rJsonWriter.startArray("commentsPos");
for (const sc::NoteEntry& aNote : aNotes)
{
- auto commentNode = rJsonWriter.startNode("");
+ auto commentNode = rJsonWriter.startStruct();
rJsonWriter.put("id", aNote.mpNote->GetId());
rJsonWriter.put("tab", aNote.maPos.Tab());