This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, Noa created the following patch for GeneralPath for GNU Classpath. "Without this patch we have fails in mauve in the java.awt.geom.GeneralPath.getPathIterator test. It turns out that when GeneralPathIterator.currentSegment(double[]) gets called and transform is set, the transform.transform() invocation doesn't fill the resulting double array from offset 0 but instead from offset 'pos' (which is the position in the PathIterator). Changing this to 0, as the attached patch does makes the two currentSegment() invocations symmetrical, and fixes all java.awt.geom.GeneralPath.getPathIterator mauve tests." 2004-11-06 Noa Resare <noa@resare.com> * java/awt/geom/GeneralPath.java (currentSegment): Fix typo in transform.transform() invocation. Committed to the gui branch. (Twice, one with the wrong patch as show below. Then with the correct patch and the reverse of the first one. Sorry for that.) Cheers, Mark --- /home/mjw/src/classpath/java/awt/geom/GeneralPath.java Thu Oct 28 17:32:47 2004 +++ java/awt/geom/GeneralPath.java Mon Sep 27 17:35:04 2004 @@ -642,7 +642,7 @@ if (transform != null) transform.transform( /* src */ coords, /* srcOffset */ - 0, /* dest */ coords, /* destOffset */ + pos, /* dest */ coords, /* destOffset */ 0, /* numPoints */ numCoords); } return seg; --- java/awt/geom/GeneralPath.java 2004-11-07 01:56:33.000000000 +0100 +++ /home/mark/src/classpath/java/awt/geom/GeneralPath.java 2004-11-06 13:46:00.000000000 +0100 @@ -616,7 +616,7 @@ if (transform != null) transform.transform( /* src */ coords, /* srcOffset */ - pos, /* dest */ coords, /* destOffset */ + 0, /* dest */ coords, /* destOffset */ 0, /* numPoints */ numCoords); } return seg; @@ -642,7 +642,7 @@ if (transform != null) transform.transform( /* src */ coords, /* srcOffset */ - pos, /* dest */ coords, /* destOffset */ + 0, /* dest */ coords, /* destOffset */ 0, /* numPoints */ numCoords); } return seg;
Attachment:
signature.asc
Description: This is a digitally signed message part
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |