summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2020-10-08 09:01:33 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-10-14 22:59:35 +0200
commit92c05bd1f8ef695a56718c4b54babbe757ab9b89 (patch)
treeb90d242984e59cd7232902a21f941c9a533e0153 /sw/source/filter
parent3ee77ed55e9d1da8d0746e8c06ecf82ed429521e (diff)
tdf#132289 missing styles when inserting file with list
Change-Id: I444997a6cc55cfe287f4c610f538f2f54803646c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104085 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104319 Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/xml/xmlimp.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index 75766a7f8a64..08cc729a019d 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -811,7 +811,10 @@ void SwXMLImport::endDocument()
if (!pTextNode->GetText().isEmpty())
pDelNd->FormatToTextAttr( pTextNode );
else
+ {
+ pTextNode->ResetAttr(RES_CHRATR_BEGIN, RES_CHRATR_END);
pTextNode->ChgFormatColl( pDelNd->GetTextColl() );
+ }
pTextNode->JoinNext();
}
}