diff options
author | pjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-09 20:46:50 +0000 |
---|---|---|
committer | pjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-09 20:46:50 +0000 |
commit | 8be393eb405c857e2c68fcdfa6886fb2d518a83d (patch) | |
tree | d647a1a487bf405691149559957313380edb5bcd /java/ImageProcessing | |
parent | 8885b82a7232087ce131d64782660ff30b87ddfa (diff) | |
download | ATCD-8be393eb405c857e2c68fcdfa6886fb2d518a83d.tar.gz |
Seth fixed minor bugs
Diffstat (limited to 'java/ImageProcessing')
-rw-r--r-- | java/ImageProcessing/framework/Hierarchy.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/ImageProcessing/framework/Hierarchy.java b/java/ImageProcessing/framework/Hierarchy.java index edab96717e0..41b1825ef4d 100644 --- a/java/ImageProcessing/framework/Hierarchy.java +++ b/java/ImageProcessing/framework/Hierarchy.java @@ -171,7 +171,8 @@ public class Hierarchy extends Canvas drawLevel(g, SPACE, SPACE); - if (d.width < scope_.width || d.height < scope_.height) + if (d.width < scope_.width || d.height < scope_.height || + d.width > scope_.width || d.height > scope_.height) resize(scope_.width, scope_.height); } @@ -193,7 +194,7 @@ public class Hierarchy extends Canvas if (icon_ != null) { entry_height = Math.max(string_height, icon_.iconSize().height); - entry_width += icon_.iconSize().width; + entry_width += icon_.iconSize().width + SPACE; indent += icon_.iconSize().width/2; if (! deadend_) drawShape(g, x, y + (entry_height - TRI_HEIGHT)/2, deadend_, collapsed_); |