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 /java/awt/geom/RectangularShape.java | |
| 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.
Diffstat (limited to 'java/awt/geom/RectangularShape.java')
| -rw-r--r-- | java/awt/geom/RectangularShape.java | 5 |
1 files changed, 1 insertions, 4 deletions
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()); |
