You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by de...@apache.org on 2007/05/03 12:06:15 UTC

svn commit: r534773 - /xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedGeneralPath.java

Author: deweese
Date: Thu May  3 03:06:11 2007
New Revision: 534773

URL: http://svn.apache.org/viewvc?view=rev&rev=534773
Log:
Fixed bug in ExtendedGeneralPath Iteratore

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedGeneralPath.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedGeneralPath.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedGeneralPath.java?view=diff&rev=534773&r1=534772&r2=534773
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedGeneralPath.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/ext/awt/geom/ExtendedGeneralPath.java Thu May  3 03:06:11 2007
@@ -645,30 +645,13 @@
                 coords[1] = values[valsIdx+1];
                 break;
             case SEG_QUADTO:
-                // coords[0] = values[valsIdx];
-                // coords[1] = values[valsIdx+1];
-                // coords[2] = values[valsIdx+2];
-                // coords[3] = values[valsIdx+3];
-                System.arraycopy( values, 0, coords, 0, 4 );
+                System.arraycopy( values, valsIdx, coords, 0, 4 );
                 break;
             case SEG_CUBICTO:
-                // coords[0] = values[valsIdx];
-                // coords[1] = values[valsIdx+1];
-                // coords[2] = values[valsIdx+2];
-                // coords[3] = values[valsIdx+3];
-                // coords[4] = values[valsIdx+4];
-                // coords[5] = values[valsIdx+5];
-                System.arraycopy( values, 0, coords, 0, 6 );
+                System.arraycopy( values, valsIdx, coords, 0, 6 );
                 break;
             case SEG_ARCTO:
-                // coords[0] = values[valsIdx];
-                // coords[1] = values[valsIdx+1];
-                // coords[2] = values[valsIdx+2];
-                // coords[3] = values[valsIdx+3];
-                // coords[4] = values[valsIdx+4];
-                // coords[5] = values[valsIdx+5];
-                // coords[6] = values[valsIdx+6];
-                System.arraycopy( values, 0, coords, 0, 7 );
+                System.arraycopy( values, valsIdx, coords, 0, 7 );
                 break;
             }
             return ret;