No need to recheck the winding rule when cloning.

This commit is contained in:
Michael Bayne
2011-06-27 17:34:41 -07:00
parent 684c92c59e
commit d549f0b136
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -289,11 +289,11 @@ public final class Path implements IShape, Cloneable
} }
private Path (int rule, byte[] types, double[] points, int typeSize, int pointSize) { private Path (int rule, byte[] types, double[] points, int typeSize, int pointSize) {
this.rule = rule;
this.types = types; this.types = types;
this.points = points; this.points = points;
this.typeSize = typeSize; this.typeSize = typeSize;
this.pointSize = pointSize; this.pointSize = pointSize;
setWindingRule(rule);
} }
/** An iterator over a {@link Path}. */ /** An iterator over a {@link Path}. */
+1 -1
View File
@@ -289,11 +289,11 @@ public final class Path implements IShape, Cloneable
} }
private Path (int rule, byte[] types, float[] points, int typeSize, int pointSize) { private Path (int rule, byte[] types, float[] points, int typeSize, int pointSize) {
this.rule = rule;
this.types = types; this.types = types;
this.points = points; this.points = points;
this.typeSize = typeSize; this.typeSize = typeSize;
this.pointSize = pointSize; this.pointSize = pointSize;
setWindingRule(rule);
} }
/** An iterator over a {@link Path}. */ /** An iterator over a {@link Path}. */