summaryrefslogtreecommitdiff
path: root/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-05-28 13:49:01 +0200
committerLászló Németh <nemeth@numbertext.org>2019-05-28 16:38:44 +0200
commit7376a47680b65cbdfd747a736f288e06f51f7f2d (patch)
treedd7305738117c83148027a914513f18977711994 /sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
parent86cab846c1a122dd4dd5f5c4ca5750a0fc397c6b (diff)
tdf#92335 DOCX: fix multiplying of "ListLabel" styles
by removing the redundant export of the temporary DOCX import character styles for bullets of bulleted lists. Note: this commit will fix the older documents – sometimes with thousands of unused styles – by the next export. The problem was escalated from the commit f9c8d97d82a85b897520a2fe897352ee5ad879d9 "tdf#95213 DOCX import: don't reuse list label styles" Change-Id: I90590352c0c85a92dbad19a45e82339e1201f1e9 Reviewed-on: https://gerrit.libreoffice.org/73098 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/extras/ooxmlexport/ooxmlexport7.cxx')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport7.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
index 90ae3b0ca1e9..1bba64ee0ccf 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
@@ -1122,6 +1122,15 @@ DECLARE_OOXMLEXPORT_TEST(testFlipAndRotateCustomShape, "flip_and_rotate.odt")
#endif
}
+DECLARE_OOXMLEXPORT_TEST(testTdf92335, "tdf92335.docx")
+{
+ // Don't export redundant ListLabel character styles
+ xmlDocPtr pXmlStyles = parseExport("word/styles.xml");
+ if (!pXmlStyles)
+ return;
+
+ assertXPath(pXmlStyles, "//w:style[@w:styleId='ListLabel1']", 0);
+}
CPPUNIT_PLUGIN_IMPLEMENT();