Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
index e8c75a38a..01f3f43fb 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
@@ -869,19 +869,19 @@ public class AsynchronousTreeViewer extends AsynchronousViewer implements Listen
}
}
- protected boolean isVisible(Widget widget) {
+ protected boolean isVisible(Widget widget) {
if (widget instanceof Tree) {
return true;
} else {
- Rectangle treeBounds = getTree().getBounds();
- TreeItem item = (TreeItem) widget;
- Rectangle itemBounds = item.getBounds();
-
- if (itemBounds.y < 0 || itemBounds.y+itemBounds.height > treeBounds.height) {
- return false;
- } else {
- return true;
- }
+ Rectangle treeBounds = getTree().getBounds();
+ TreeItem item = (TreeItem) widget;
+ Rectangle itemBounds = item.getBounds();
+
+ if (itemBounds.height <= 0 || itemBounds.y < 0 || itemBounds.y > treeBounds.height) {
+ return false;
+ } else {
+ return true;
+ }
}
}

Back to the top