No need to recheck the winding rule when cloning.
This commit is contained in:
@@ -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}. */
|
||||||
|
|||||||
@@ -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}. */
|
||||||
|
|||||||
Reference in New Issue
Block a user