aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jogl/classes/com/jogamp/math/Recti.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/math/Recti.java b/src/jogl/classes/com/jogamp/math/Recti.java
index 68e0cfd0b..a77bbbb58 100644
--- a/src/jogl/classes/com/jogamp/math/Recti.java
+++ b/src/jogl/classes/com/jogamp/math/Recti.java
@@ -99,9 +99,9 @@ public final class Recti {
public void setWidth(final int width) { this.width = width; }
public void setHeight(final int height) { this.height = height; }
- /** Return true if all components are zero. */
+ /** Return true if area is zero. */
public boolean isZero() {
- return 0 == x && 0 == y;
+ return 0 == width || 0 == height;
}
/**