summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/layout/atrfrm.cxx2
-rw-r--r--sw/source/core/undo/undobj1.cxx7
2 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 84076a24ced6..8755ee81235d 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -615,6 +615,8 @@ void SwFormatContent::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterWriteAttribute(
pWriter, BAD_CAST("startNode"),
BAD_CAST(OString::number(m_pStartNode->GetNode().GetIndex()).getStr()));
+ xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("startNodePtr"), "%p",
+ &m_pStartNode->GetNode());
}
xmlTextWriterEndElement(pWriter);
}
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx
index 15801bca46e2..fb779e53d4f9 100644
--- a/sw/source/core/undo/undobj1.cxx
+++ b/sw/source/core/undo/undobj1.cxx
@@ -155,6 +155,13 @@ void SwUndoFlyBase::InsFly(::sw::UndoRedoContext & rContext, bool bShowSelFrame)
pSdrObject->setUnoShape(nullptr);
}
}
+ if (m_pFrameFormat->Which() == RES_DRAWFRMFMT)
+ {
+ // This is a draw format and we just set the fly format's textbox pointer to this draw
+ // format. Sync the draw format's content with the fly format's content.
+ SwFrameFormat* pFlyFormat = m_pFrameFormat->GetOtherTextBoxFormat();
+ m_pFrameFormat->SetFormatAttr(pFlyFormat->GetContent());
+ }
}
m_pFrameFormat->MakeFrames();