diff options
author | Mark Hung <marklh9@gmail.com> | 2017-10-20 07:15:21 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2017-10-24 16:11:45 +0200 |
commit | 48a4cf1021c471ebf1ecbc351292511131c2d4ca (patch) | |
tree | d3b62de2b84cfe84c8c69bc126b7170e983078df /sw/qa/extras/odfexport | |
parent | 037ba2c98d202aa87e2c7c32857765bc9bb01a80 (diff) |
tdf#77961 set display grid to false if the attribute is missing
Display-grid attribute is absent in the ODT file created by
Word. We prefer it to be invisible in this case.
Change-Id: I5abc301f76f547f78a55a507b61396bae0de1f71
Reviewed-on: https://gerrit.libreoffice.org/43619
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'sw/qa/extras/odfexport')
-rw-r--r-- | sw/qa/extras/odfexport/data/tdf77961.odt | bin | 0 -> 11510 bytes | |||
-rw-r--r-- | sw/qa/extras/odfexport/odfexport.cxx | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/odfexport/data/tdf77961.odt b/sw/qa/extras/odfexport/data/tdf77961.odt Binary files differnew file mode 100644 index 000000000000..a6205e018d5f --- /dev/null +++ b/sw/qa/extras/odfexport/data/tdf77961.odt diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx index a2f9923b57d7..173807889849 100644 --- a/sw/qa/extras/odfexport/odfexport.cxx +++ b/sw/qa/extras/odfexport/odfexport.cxx @@ -1695,6 +1695,13 @@ DECLARE_ODFEXPORT_TEST(testTdf100492, "tdf100492.odt") //assertXPath(pXmlDoc, "/svg/path", 4); } +DECLARE_ODFEXPORT_TEST(testTdf77961, "tdf77961.odt") +{ + uno::Reference<container::XNameAccess> xStyles(getStyles("PageStyles")); + uno::Reference<beans::XPropertySet> xStyle(xStyles->getByName("Standard"), uno::UNO_QUERY); + CPPUNIT_ASSERT_EQUAL( false , getProperty<bool>(xStyle, "GridDisplay")); +} + #endif CPPUNIT_PLUGIN_IMPLEMENT(); |