From 5d8e3a5d772c77814ff4560fda97c8f67c6e209a Mon Sep 17 00:00:00 2001 From: Hiraoka Date: Wed, 3 Feb 2021 21:18:03 +0900 Subject: [PATCH] Fix #859 (overclipping in variation tree) --- src/main/java/featurecat/lizzie/gui/VariationTree.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/featurecat/lizzie/gui/VariationTree.java b/src/main/java/featurecat/lizzie/gui/VariationTree.java index 3a6789017..4cfe2f21e 100644 --- a/src/main/java/featurecat/lizzie/gui/VariationTree.java +++ b/src/main/java/featurecat/lizzie/gui/VariationTree.java @@ -268,7 +268,7 @@ public Optional draw( int curposy = middleY - YSPACING * (curMove.getData().moveNumber - top.getData().moveNumber); // Go to very top of tree (visible in assigned area) BoardHistoryNode node = top; - while (curposy > posy + YSPACING && node.previous().isPresent()) { + while (curposy > posy - YSPACING && node.previous().isPresent()) { node = node.previous().get(); curposy -= YSPACING; }