sw/source/core/doc/docredln.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit f96530ce072d93c2756f0a5064e82059009bf4ef
Author: Miklos Vajna <[email protected]>
AuthorDate: Mon Mar 17 09:11:37 2025 +0100
Commit: Miklos Vajna <[email protected]>
CommitDate: Mon Mar 17 09:34:58 2025 +0100
sw doc model xml dump: show SwRangeRedline IDs
The inner SwRedlineData has an ID, and that was shown, but that may not
be unique and also e.g. SwView::Execute() works with the SwRangeRedline
ID, not with the SwRedlineData ID.
Change-Id: Ic855434beaa9ce2ebe6eb02c5dd13721970f8805
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183023
Tested-by: Jenkins CollaboraOffice <[email protected]>
Reviewed-by: Miklos Vajna <[email protected]>
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index e5728cb39a07..ee99d245b755 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -2387,6 +2387,7 @@ void SwRangeRedline::dumpAsXml(xmlTextWriterPtr pWriter)
const
(void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwRangeRedline"));
(void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p",
this);
+ (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("id"), "%s",
BAD_CAST(OString::number(m_nId).getStr()));
const SwRedlineData* pRedlineData = m_pRedlineData;
while (pRedlineData)