Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/featurecat/lizzie/gui/VariationTree.java
Original file line number Diff line number Diff line change
@@ -277,7 +277,7 @@ public Optional<BoardHistoryNode> 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;
}

0 comments on commit 25121e1

Please sign in to comment.