From 8be393eb405c857e2c68fcdfa6886fb2d518a83d Mon Sep 17 00:00:00 2001 From: pjain Date: Wed, 9 Apr 1997 20:46:50 +0000 Subject: Seth fixed minor bugs --- java/ImageProcessing/framework/Hierarchy.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'java') 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_); -- cgit v1.2.1