summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/fmtcol.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/doc/fmtcol.cxx b/sw/source/core/doc/fmtcol.cxx
index 96274bb5b5d3..055ab5fbabe2 100644
--- a/sw/source/core/doc/fmtcol.cxx
+++ b/sw/source/core/doc/fmtcol.cxx
@@ -551,6 +551,11 @@ void SwTextFormatColl::dumpAsXml(xmlTextWriterPtr pWriter) const
(void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("ptr"), "%p", this);
(void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("symbol"), "%s", BAD_CAST(typeid(*this).name()));
(void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("name"), BAD_CAST(GetName().toUtf8().getStr()));
+ if (SwFormat* pDerivedFrom = DerivedFrom())
+ {
+ (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("derived-from"),
+ BAD_CAST(pDerivedFrom->GetName().toUtf8().getStr()));
+ }
if (mpNextTextFormatColl)
{
(void)xmlTextWriterWriteAttribute(