summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java
index 57239ac48..a9978abe5 100644
--- a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java
+++ b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java
@@ -534,13 +534,14 @@ public class AffineTransform implements Cloneable {
if (src == null) {
return null;
}
- if (src instanceof Path2D) {
- return src.createTransformedShape(this);
- }
- final PathIterator path = src.iterator(this);
- final Path2D dst = new Path2D(path.getWindingRule());
- dst.append(path, false);
- return dst;
+ return src.createTransformedShape(this);
+ /**
+ * If !(src instanceof Path2D): (but here it always is)
+ final PathIterator path = src.iterator(this);
+ final Path2D dst = new Path2D(path.getWindingRule());
+ dst.append(path, false);
+ return dst;
+ */
}
@Override