summaryrefslogtreecommitdiff
path: root/sw/qa/extras
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-11 11:13:13 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-11 17:03:28 +0100
commit19762e8b96f16504e6e7607f96ff9c5c62e9e35c (patch)
tree2c9951ad0e1dec45bde1d7260cdb40cc1eff8d6f /sw/qa/extras
parent18101d292f6a8de2ae45b49193b4c6e3c99a332f (diff)
DOCX export: don't write w:suppressAutoHyphens unconditionally
Change-Id: I0e716f1c6d5034774247264cd098ede14601f751
Diffstat (limited to 'sw/qa/extras')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport3.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
index 7b0edaf18551..b411a4c6e331 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport3.cxx
@@ -262,6 +262,9 @@ DECLARE_OOXMLEXPORT_TEST(testStyleInheritance, "style-inheritance.docx")
// Finally check the same for numbering styles.
assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='NoList']", "default", "1");
+
+ // This was 1, the default style had <w:suppressAutoHyphens w:val="true"/> even for a default style having no RES_PARATR_HYPHENZONE set.
+ assertXPath(pXmlStyles, "/w:styles/w:style[@w:styleId='Normal']/w:pPr/w:suppressAutoHyphens", 0);
}
DECLARE_OOXMLEXPORT_TEST(testCalendar1, "calendar1.docx")