diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-03-16 19:33:48 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-17 10:38:05 +0000 |
commit | 56552630fe21a143ca243807f093ebb150a2de98 (patch) | |
tree | 3aa080240bf2eeb60275473b6288b82262fb1a16 /sw/source/uibase/uno/unotxdoc.cxx | |
parent | a9bbc74f1d9053cb3b950e0c14e0fae18f1b0257 (diff) |
sw lok: Use unique redline identifier, instead of array indices
Use a static integer counter as identifier to each redline
Change few unit-tets that was testing redlines by using a hardcoded array
index. Instead use these unique redline identifiers now.
Change-Id: I63aec3fc8ab10d0dad0c936600d16e96999a2bcd
Reviewed-on: https://gerrit.libreoffice.org/35276
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index de8057e21640..a93469fb96f0 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3187,7 +3187,7 @@ OUString SwXTextDocument::getTrackedChanges() for (SwRedlineTable::size_type i = 0; i < rRedlineTable.size(); ++i) { boost::property_tree::ptree aTrackedChange; - aTrackedChange.put("index", i); + aTrackedChange.put("index", rRedlineTable[i]->GetId()); aTrackedChange.put("author", rRedlineTable[i]->GetAuthorString(1).toUtf8().getStr()); aTrackedChange.put("type", nsRedlineType_t::SwRedlineTypeToOUString(rRedlineTable[i]->GetRedlineData().GetType()).toUtf8().getStr()); aTrackedChange.put("comment", rRedlineTable[i]->GetRedlineData().GetComment().toUtf8().getStr()); |