diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-11-30 18:26:11 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-12-02 18:44:16 +0100 |
commit | 923ca4efe2095998e3da75c372cd7d716db9abb3 (patch) | |
tree | 9dcc6d326fe3183562b45675c543c288d0fcd386 /sw/qa | |
parent | 0cb20da5fddbfbeb06f51aef9cd5addb669bb2ad (diff) |
tdf#113037 Unify Watermark in DOC & DOCX
* use correct font for calculations
Change-Id: Idd370678c000bf22c460c3323bd55cd827ba7153
Reviewed-on: https://gerrit.libreoffice.org/45698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx index 24e57e21c369..9c29fd434dd9 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport10.cxx @@ -1759,8 +1759,9 @@ DECLARE_OOXMLEXPORT_TEST(testWatermark, "watermark.docx") // Rounding errors sal_Int32 nDifference = 5198 - nTotalHeight; std::stringstream ss; - ss << "Difference: " << nDifference; + ss << "Difference: " << nDifference << " TotalHeight: " << nTotalHeight; CPPUNIT_ASSERT_MESSAGE(ss.str(), nDifference <= 4); + CPPUNIT_ASSERT_MESSAGE(ss.str(), nDifference >= -4); } CPPUNIT_PLUGIN_IMPLEMENT(); |