sw/qa/extras/ooxmlexport/ooxmlexport15.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit eac65a1fed85cd15e860c08f39b77f29ade4a567 Author: Mike Kaganski <[email protected]> AuthorDate: Thu Sep 8 17:14:12 2022 +0300 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Sep 8 19:47:28 2022 +0200 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 <[email protected]> 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");
