sw/source/core/doc/docredln.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0c5953f1adb36ba3c5658050e6fb4b086839f210
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Mar 17 09:11:37 2025 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Tue Mar 18 11:21:54 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/+/183058
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 27307315724d..c6bf7eb30f7f 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)

Reply via email to