From 139becd4f940b76b8dd947db57a63e5631641557 Mon Sep 17 00:00:00 2001 From: martii Date: Sat, 20 Jul 2013 16:22:54 +0200 Subject: [PATCH] gui/widget/listframe: change up/down to use setSelectedLine() (fix II) --- src/gui/widget/listframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/listframe.cpp b/src/gui/widget/listframe.cpp index e8c20a37f..4130e05fa 100644 --- a/src/gui/widget/listframe.cpp +++ b/src/gui/widget/listframe.cpp @@ -521,7 +521,7 @@ void CListFrame::scrollLineUp(const int lines) if( !(m_nMode & SCROLL)) return; if( m_nNrOfLines <= 1) return; - setSelectedLine((m_nNrOfLines - lines + m_nSelectedLine - 1) % m_nNrOfLines); + setSelectedLine((m_nSelectedLine - lines + m_nNrOfLines) % m_nNrOfLines); } void CListFrame::scrollPageDown(const int pages)