From 38778847303291bcbc2a9c45849211ba0f7551af Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Mon, 28 Oct 2013 14:33:05 +0000
Subject: [PATCH] [Fix] Image arrays going out of sync.

---
 src/toolkit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/toolkit.c b/src/toolkit.c
index 0485e22..71812aa 100644
--- a/src/toolkit.c
+++ b/src/toolkit.c
@@ -1667,6 +1667,8 @@ static void toolkit_listScroll(Widget* wgt, int direction) {
 
     /* Maximum. */
     hmax = h * (yelem - (int)(wgt->h / h));
+    if(hmax < 0.)
+      hmax = 0.;
 
     /* Move. */
     wgt->dat.iar.pos -= direction * h;