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]

FYI [gui] GeneralPath evaluateCrossings patch from GNU Classpath


Hi,

This fix was made by Sven in GNU Classpath:

2004-11-11  Sven de Marothy  <sven@physto.se>

        * java/awt/geom/GeneralPath.java (evaluateCrossings):
        Fixed epsilon value, should always be nonzero.

Committed to the gui branch.

Cheers,

Mark
Index: java/awt/geom/GeneralPath.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/geom/GeneralPath.java,v
retrieving revision 1.3.14.5
diff -u -r1.3.14.5 GeneralPath.java
--- java/awt/geom/GeneralPath.java	7 Nov 2004 01:04:15 -0000	1.3.14.5
+++ java/awt/geom/GeneralPath.java	11 Nov 2004 23:03:00 -0000
@@ -778,7 +778,10 @@
 
     /* Get a value which is hopefully small but not insignificant relative
      the path. */
-    epsilon = ypoints[0] * 1E-9;
+    epsilon = ypoints[0] * 1E-7;
+
+    if(epsilon == 0) 
+      epsilon = 1E-7;
 
     pos = 0;
     while (pos < index)

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]