sw/source/core/text/xmldump.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 8e307b8affbeb26555b25cf07a8a270a0447f6db
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Thu Jun 15 09:34:54 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Thu Jun 15 16:04:03 2023 +0200

    sw layout xml dump: show page frame of anchored objects
    
    It's useful to see if this is updated already or not when the object
    moves between pages.
    
    Change-Id: Iccad297585c04d77a95eb6cd31b65919470a97e2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153102
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index 5c85d5c601fb..cadf89fb3531 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -371,6 +371,10 @@ void SwAnchoredObject::dumpAsXml( xmlTextWriterPtr writer 
) const
     (void)xmlTextWriterStartElement( writer, BAD_CAST( getElementName() ) );
     (void)xmlTextWriterWriteFormatAttribute( writer, BAD_CAST( "ptr" ), "%p", 
this );
     (void)xmlTextWriterWriteAttribute(writer, BAD_CAST("anchor-frame"), 
BAD_CAST(OString::number(mpAnchorFrame->GetFrameId()).getStr()));
+    if (mpPageFrame)
+    {
+        (void)xmlTextWriterWriteAttribute(writer, BAD_CAST("page-frame"), 
BAD_CAST(OString::number(mpPageFrame->GetFrameId()).getStr()));
+    }
     SwTextFrame* pAnchorCharFrame = 
const_cast<SwAnchoredObject*>(this)->FindAnchorCharFrame();
     if (pAnchorCharFrame)
     {

Reply via email to