changeset 3747:620ba7384511

Fix RT-29929 - exceptions with cached shapes due to NaN comparisons
author flar <James.Graham@oracle.com>
date Tue, 28 May 2013 19:32:47 -0700
parents 4aa29e84eb5e
children 0d994ae9c839
files javafx-geom/src/com/sun/javafx/geom/RectBounds.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-geom/src/com/sun/javafx/geom/RectBounds.java	Tue May 28 14:03:46 2013 -0700
+++ b/javafx-geom/src/com/sun/javafx/geom/RectBounds.java	Tue May 28 19:32:47 2013 -0700
@@ -439,7 +439,8 @@
     }
 
     public boolean isEmpty() {
-        return maxX < minX || maxY < minY;
+        // NaN values will cause the comparisons to fail and return "empty"
+        return !(maxX >= minX && maxY >= minY);
     }
     
     /**