From d549f0b136db39b4dac6be224d4e7aed3d2bb673 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 27 Jun 2011 17:34:41 -0700 Subject: [PATCH] No need to recheck the winding rule when cloning. --- src/main/java/pythagoras/d/Path.java | 2 +- src/main/java/pythagoras/f/Path.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pythagoras/d/Path.java b/src/main/java/pythagoras/d/Path.java index 1b7c910..c9ab395 100644 --- a/src/main/java/pythagoras/d/Path.java +++ b/src/main/java/pythagoras/d/Path.java @@ -289,11 +289,11 @@ public final class Path implements IShape, Cloneable } private Path (int rule, byte[] types, double[] points, int typeSize, int pointSize) { + this.rule = rule; this.types = types; this.points = points; this.typeSize = typeSize; this.pointSize = pointSize; - setWindingRule(rule); } /** An iterator over a {@link Path}. */ diff --git a/src/main/java/pythagoras/f/Path.java b/src/main/java/pythagoras/f/Path.java index b8030a2..56f86b2 100644 --- a/src/main/java/pythagoras/f/Path.java +++ b/src/main/java/pythagoras/f/Path.java @@ -289,11 +289,11 @@ public final class Path implements IShape, Cloneable } private Path (int rule, byte[] types, float[] points, int typeSize, int pointSize) { + this.rule = rule; this.types = types; this.points = points; this.typeSize = typeSize; this.pointSize = pointSize; - setWindingRule(rule); } /** An iterator over a {@link Path}. */