diff options
Diffstat (limited to 'javax/swing/tree/VariableHeightLayoutCache.java')
-rw-r--r-- | javax/swing/tree/VariableHeightLayoutCache.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javax/swing/tree/VariableHeightLayoutCache.java b/javax/swing/tree/VariableHeightLayoutCache.java index 11509b1b0..03251eb1f 100644 --- a/javax/swing/tree/VariableHeightLayoutCache.java +++ b/javax/swing/tree/VariableHeightLayoutCache.java @@ -451,8 +451,8 @@ public class VariableHeightLayoutCache { if (y < r.y) return r.y - y; - else if (y > r.y + r.height) - return y - (r.y + r.height); + else if (y > r.y + r.height - 1) + return y - (r.y + r.height - 1); else return 0; } |