summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-09-08 17:14:12 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-09-08 19:47:28 +0200
commiteac65a1fed85cd15e860c08f39b77f29ade4a567 (patch)
tree59f2053c72be1fa1ad8c197b38c882443a2f2166 /sw/qa
parent3a1b2c2b01bba0f1aeff52067110c44b68cd31be (diff)
Fix CppunitTest_sw_ooxmlexport15 on non-default DPI
Change-Id: Iba28b332e3f9b5c03a94f563bee9c5ecdf96a61a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139692 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport15.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
index a918b69de542..0878ce515e2e 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport15.cxx
@@ -808,7 +808,8 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf138374)
xmlDocUniquePtr pXmlDocument = parseExport("word/document.xml");
assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "fillcolor", "#ffd320");
assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "coordsize", "1315,6116");
- assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "path",
+ if (IsDefaultDPI())
+ assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "path",
"m0,0l1314,0l1314,5914l416,5914l416,6115l106,5715l416,5415l416,5715l1014,5715l1014,224l0,224l0,16l0,0e");
assertXPath(pXmlDocument, "/w:document/w:body/w:p[2]/w:r/w:pict/v:shape", "style",
"position:absolute;margin-left:394.3pt;margin-top:204pt;width:37.2pt;height:173.3pt;mso-wrap-style:none;v-text-anchor:middle");