summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-01-06 12:59:29 +0200
committerAndras Timar <andras.timar@collabora.com>2021-01-19 09:30:20 +0100
commit2054b11539d2c2e67930c1ee32326ebe20f25c3e (patch)
tree7eb674bfb6a4df672dee2a0b0d257dbadfbf77f8 /desktop/source
parent5fb8b1b2867af8dc5e55c769cf9923609709f914 (diff)
fix location of change tracking boxes in Online
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108849 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 042bb632978a1d01f3240890ea9d39ead707633d) Change-Id: I65fcb52e224dce7df2a5a7baed2b8f23d0d49397 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108861 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 35ea08209e7e..cad798a9be44 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -4852,12 +4852,12 @@ static char* getTrackedChanges(LibreOfficeKitDocument* pThis)
// construct the tracked changes JSON from inside the sw/, not here using UNO
if (doc_getDocumentType(pThis) != LOK_DOCTYPE_TEXT && xRedlinesSupplier.is())
{
- auto redlinesNode = aJson.startNode("redlines");
+ auto redlinesNode = aJson.startArray("redlines");
uno::Reference<container::XEnumeration> xRedlines = xRedlinesSupplier->getRedlines()->createEnumeration();
for (size_t nIndex = 0; xRedlines->hasMoreElements(); ++nIndex)
{
uno::Reference<beans::XPropertySet> xRedline(xRedlines->nextElement(), uno::UNO_QUERY);
- auto redlineNode = aJson.startNode("");
+ auto redlineNode = aJson.startStruct();
aJson.put("index", nIndex);
OUString sAuthor;