From 923ca4efe2095998e3da75c372cd7d716db9abb3 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 30 Nov 2017 18:26:11 +0100 Subject: tdf#113037 Unify Watermark in DOC & DOCX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * use correct font for calculations Change-Id: Idd370678c000bf22c460c3323bd55cd827ba7153 Reviewed-on: https://gerrit.libreoffice.org/45698 Tested-by: Jenkins Reviewed-by: Szymon Kłos --- sw/qa/extras/ooxmlexport/ooxmlexport10.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/qa') 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(); -- cgit