diff options
author | Lillian Angel <langel@redhat.com> | 2005-08-05 17:16:51 +0000 |
---|---|---|
committer | Lillian Angel <langel@redhat.com> | 2005-08-05 17:16:51 +0000 |
commit | f4821aed135a0d52ee15cb04822a59e97591943e (patch) | |
tree | adea4e5ef4f59c81586a23aba2c4732928096655 /java | |
parent | fead5db00b7e7df2bb04975bb98e1ea3e213a70b (diff) | |
download | classpath-f4821aed135a0d52ee15cb04822a59e97591943e.tar.gz |
2005-08-05 Lillian Angel <langel@redhat.com>
* java/awt/GridBagLayout.java
(setConstraints): Removed checks in if statements because if the height
or width is less than 0, it should be updated to a positive number in
all cases.
Diffstat (limited to 'java')
-rw-r--r-- | java/awt/GridBagLayout.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/java/awt/GridBagLayout.java b/java/awt/GridBagLayout.java index 455434bbe..7f9ab249b 100644 --- a/java/awt/GridBagLayout.java +++ b/java/awt/GridBagLayout.java @@ -192,16 +192,12 @@ public class GridBagLayout if (clone.gridwidth == 0) clone.gridwidth = GridBagConstraints.REMAINDER; - else if (clone.gridwidth < 0 - && clone.gridwidth != GridBagConstraints.REMAINDER - && clone.gridwidth != GridBagConstraints.RELATIVE) + else if (clone.gridwidth < 0) clone.gridwidth = 1; if (clone.gridheight == 0) clone.gridheight = GridBagConstraints.REMAINDER; - else if (clone.gridheight < 0 - && clone.gridheight != GridBagConstraints.REMAINDER - && clone.gridheight != GridBagConstraints.RELATIVE) + else if (clone.gridheight < 0) clone.gridheight = 1; comptable.put (component, clone); |