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 ca...@apache.org on 2006/06/14 08:39:44 UTC

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

Author: cam
Date: Tue Jun 13 23:39:44 2006
New Revision: 414115

URL: http://svn.apache.org/viewvc?rev=414115&view=rev
Log:
1. Fixed bug in ExtendedGeneralPath.clone().

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?rev=414115&r1=414114&r2=414115&view=diff
==============================================================================
--- 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 Tue Jun 13 23:39:44 2006
@@ -688,11 +688,11 @@
             result.path = (GeneralPath) path.clone();
 
             result.values = new float[values.length];
-            System.arraycopy(result.values, 0, values, 0, values.length);
+            System.arraycopy(values, 0, result.values, 0, values.length);
             result.numVals = numVals;
 
             result.types = new int[types.length];
-            System.arraycopy(result.types, 0, types, 0, types.length);
+            System.arraycopy(types, 0, result.types, 0, types.length);
             result.numSeg = numSeg;
 
             return result;