summaryrefslogtreecommitdiff
path: root/basegfx/test/clipstate.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-01-17 16:32:43 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-01-18 15:27:54 +0100
commit13e1fe0561facccc80628c031065ad91adfdeade (patch)
tree0fe87397f45ea7fe3910810be00a925dd56e22ba /basegfx/test/clipstate.cxx
parentb13852edb7ab68ba74fb47a38aebbda995323ecf (diff)
Fix error in handling 'z' for svg:d string parsing
Previously 'z' did not update the current point to the start point of the subpath, as required by http://www.w3.org/TR/SVG/paths.html#PathDataClosePathCommand. Fixed now, and adapted all the unit tests.
Diffstat (limited to 'basegfx/test/clipstate.cxx')
-rw-r--r--basegfx/test/clipstate.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx
index c1ddfacd506b..ec25438c33a8 100644
--- a/basegfx/test/clipstate.cxx
+++ b/basegfx/test/clipstate.cxx
@@ -136,8 +136,9 @@ public:
void verifySimpleRange()
{
const char* unionSvg="m100 10v90h-90v10h-20v-10h-90v-90h-10v-20h10v-90h90v-10h20v10h90v90h10v20z";
- const char* intersectSvg="m-100 10v-20h10v20zm80 90v-10h20v10zm-20-190v-10h20v10zm80 100v-20h10v20z";
- const char* xorSvg="m-100 10h10v-20h-10zm90 110h20v-10h-20zm0-180h20v-10h-20zm100 110h10v-20h-10zm10 20v90h-90v10h-20v-10h-90v-90h-10v-20h10v-90h90v-10h20v10h90v90h10v20z";
+ const char* intersectSvg="m-100 10v-20h10v20zm90 90v-10h20v10zm0-190v-10h20v10zm100 100v-20h10v20z";
+ const char* xorSvg="m-100 10h10v-20h-10zm90 90h20v-10h-20zm0-190h20v-10h-20zm100 100h10v-20h-10z"
+ "m10 0v90h-90v10h-20v-10h-90v-90h-10v-20h10v-90h90v-10h20v10h90v90h10v20z";
const char* subtractSvg="m-90 10v-20h-10v-90h90v10h20v-10h90v90h-10v20h10v90h-90v-10h-20v10h-90v-90z";
CPPUNIT_ASSERT_MESSAGE("cleared clip stays empty under union operation",
@@ -164,7 +165,7 @@ public:
aMixedClip.subtractRange(B2DRange(-150,-20,0,20));
aMixedClip.xorRange(B2DRange(-150,-150,150,150));
- const char* mixedClipSvg="m0 0v20h-100v80h90v10h20v-10h90v-90h10v-20h-10v-90h-80v100zm-40-20v-80h-80v80zm-50 170v-300h300v300z";
+ const char* mixedClipSvg="m0 0v20h-100v80h90v10h20v-10h90v-90h10v-20h-10v-90h-80v100zm-20-20v-80h-80v80zm-130 170v-300h300v300z";
verifyPoly("mixed clip", mixedClipSvg, aMixedClip);
}