From 29fb896d331c37c518da730159c33ea91d951fb5 Mon Sep 17 00:00:00 2001 From: casey langen Date: Tue, 18 Dec 2018 22:25:51 -0800 Subject: [PATCH] Fixed a super old fence-post error. --- src/musikcube/cursespp/Scrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musikcube/cursespp/Scrollbar.cpp b/src/musikcube/cursespp/Scrollbar.cpp index c5dbfabef..fd8b9b446 100644 --- a/src/musikcube/cursespp/Scrollbar.cpp +++ b/src/musikcube/cursespp/Scrollbar.cpp @@ -68,7 +68,7 @@ void Scrollbar::Draw(ListWindow* list, Window* target) { float total = (float) std::max(minY, adapter->GetEntryCount()); int yOffset; - if (range > total) { + if (range >= total) { yOffset = -1; } else {