[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - sc/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 27 12:47:00 UTC 2021


 sc/source/ui/unoobj/docuno.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e7908d1c64d0b395b61f9dd56d638a3ce08ecff8
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Sep 15 14:37:37 2021 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Sep 27 14:46:24 2021 +0200

    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 at gmail.com>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 6237277c8498..2b22929fa25d 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1120,10 +1120,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());
@@ -1162,10 +1162,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());


More information about the Libreoffice-commits mailing list