summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Kung <fkung@redhat.com>2006-12-06 19:02:38 +0000
committerFrancis Kung <fkung@redhat.com>2006-12-06 19:02:38 +0000
commit784d171e995d386c1aae2899a963d725ab7ded88 (patch)
tree080b032a61e2a49afacda3da672bce7aed5e3f22
parentf7142033b35860eec10f9729793294795bedc265 (diff)
downloadclasspath-784d171e995d386c1aae2899a963d725ab7ded88.tar.gz
2006-12-06 Francis Kung <fkung@redhat.com>
* java/awt/geom/RectangularShape.java (getBounds): Remove empty rectangle check.
-rw-r--r--ChangeLog5
-rw-r--r--java/awt/geom/RectangularShape.java5
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index c79cf5e18..543bbee29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-06 Francis Kung <fkung@redhat.com>
+
+ * java/awt/geom/RectangularShape.java
+ (getBounds): Remove empty rectangle check.
+
2006-12-06 Ben Konrath <bkonrath@redhat.com>
Fixes PR 29853.
diff --git a/java/awt/geom/RectangularShape.java b/java/awt/geom/RectangularShape.java
index 8f66dabf2..3ee161541 100644
--- a/java/awt/geom/RectangularShape.java
+++ b/java/awt/geom/RectangularShape.java
@@ -326,15 +326,12 @@ public abstract class RectangularShape implements Shape, Cloneable
/**
* Returns a bounding box for this shape, in integer format. Notice that you
- * may get a tighter bound with getBounds2D. If the frame is empty, the
- * box is the default empty box at the origin.
+ * may get a tighter bound with getBounds2D.
*
* @return a bounding box
*/
public Rectangle getBounds()
{
- if (isEmpty())
- return new Rectangle();
double x = getX();
double y = getY();
double maxx = Math.ceil(x + getWidth());