diff options
author | Francis Kung <fkung@redhat.com> | 2006-12-06 19:02:38 +0000 |
---|---|---|
committer | Francis Kung <fkung@redhat.com> | 2006-12-06 19:02:38 +0000 |
commit | 784d171e995d386c1aae2899a963d725ab7ded88 (patch) | |
tree | 080b032a61e2a49afacda3da672bce7aed5e3f22 | |
parent | f7142033b35860eec10f9729793294795bedc265 (diff) | |
download | classpath-784d171e995d386c1aae2899a963d725ab7ded88.tar.gz |
2006-12-06 Francis Kung <fkung@redhat.com>
* java/awt/geom/RectangularShape.java
(getBounds): Remove empty rectangle check.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/awt/geom/RectangularShape.java | 5 |
2 files changed, 6 insertions, 4 deletions
@@ -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()); |