sw/source/core/table/swtable.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c19ef6d5edc0cf0a26e82752a71e1d1e01f08db7
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Thu Feb 16 20:19:42 2023 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Feb 17 07:15:14 2023 +0000

    sw doc model xml dump: show a table format only once
    
    Table frame formats owned by SwDoc::mpTableFrameFormatTable, so show it
    only there and mention only the address in SwTable.
    
    With this, we show one table format only once, which decreases my
    confusion.
    
    Change-Id: I543153589375c3ac5f7c8307bfb2cd7a75e2d359
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147172
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/core/table/swtable.cxx b/sw/source/core/table/swtable.cxx
index 06c76771434d..621a0e3083ab 100644
--- a/sw/source/core/table/swtable.cxx
+++ b/sw/source/core/table/swtable.cxx
@@ -1616,7 +1616,7 @@ void SwTable::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
     (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwTable"));
     (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", 
this);
-    GetFrameFormat()->dumpAsXml(pWriter);
+    (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("table-format"), 
"%p", GetFrameFormat());
     for (const auto& pLine : GetTabLines())
     {
         (void)xmlTextWriterStartElement(pWriter, BAD_CAST("SwTableLine"));

Reply via email to