diff options
author | Eilidh McAdam <eilidh.mcadam@itomig.de> | 2014-12-12 00:45:11 +0000 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-02-09 19:42:29 +0100 |
commit | 0ca943155c04ee6272bba7ce957b8d87ae9442de (patch) | |
tree | 7974ded518fc91c82ca0ea1e439bb59d092361e5 /vcl/qa/cppunit | |
parent | f5e7207053b857b6903a0ab9c161bed9ad7bcee9 (diff) |
EMF clip regions should be ignored sometimes.
Specifically, the record EMR_EXTSELECTCLIPRGN specifies the default
clip region if the RegionMode field is set to RGN_COPY.
See EMF specification section 2.3.2.2 available from
http://msdn.microsoft.com/en-us/library/cc230624.aspx
A unit test had to be changed for this - instead of checking for
a specific clip region, it now checks that no clip region is
specified. This is under the assumption that the default clip
region for our device context is "show everything" - i.e. no clip.
Note also that RGN_COPY seems to be a common mode value for this
record type.
Change-Id: I7bd4fe305dda184d121465005fe09d3c113e3063
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/wmf/wmfimporttest.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/vcl/qa/cppunit/wmf/wmfimporttest.cxx b/vcl/qa/cppunit/wmf/wmfimporttest.cxx index f0d192c41a03..6b1cec40060a 100644 --- a/vcl/qa/cppunit/wmf/wmfimporttest.cxx +++ b/vcl/qa/cppunit/wmf/wmfimporttest.cxx @@ -96,15 +96,7 @@ void WmfTest::testSine() CPPUNIT_ASSERT (pDoc); - assertXPath(pDoc, "/metafile/sectrectclipregion[1]", "top", "0"); - assertXPath(pDoc, "/metafile/sectrectclipregion[1]", "left", "0"); - assertXPath(pDoc, "/metafile/sectrectclipregion[1]", "bottom", "1155947"); - assertXPath(pDoc, "/metafile/sectrectclipregion[1]", "right", "1155378"); - - assertXPath(pDoc, "/metafile/sectrectclipregion[2]", "top", "1411"); - assertXPath(pDoc, "/metafile/sectrectclipregion[2]", "left", "2962"); - assertXPath(pDoc, "/metafile/sectrectclipregion[2]", "bottom", "16651"); - assertXPath(pDoc, "/metafile/sectrectclipregion[2]", "right", "20698"); + assertXPath(pDoc, "/metafile/sectrectclipregion", 0); } void WmfTest::testEmfProblem() |