gui/widget/listframe: change up/down to use setSelectedLine() (fix)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5ba9c99a9a
Author: martii <m4rtii@gmx.de>
Date: 2013-07-20 (Sat, 20 Jul 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-07-20 16:19:01 +02:00
committed by [CST] Focus
parent 95549859f3
commit 67392e48a4

View File

@@ -512,7 +512,7 @@ void CListFrame::scrollLineDown(const int lines)
if( !(m_nMode & SCROLL)) return;
if( m_nNrOfLines <= 1) return;
setSelectedLine((m_nSelectedLine + lines) % (m_nNrOfLines - 1));
setSelectedLine((m_nSelectedLine + lines) % m_nNrOfLines);
}
void CListFrame::scrollLineUp(const int lines)
@@ -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 - 1));
setSelectedLine((m_nNrOfLines - lines + m_nSelectedLine - 1) % m_nNrOfLines);
}
void CListFrame::scrollPageDown(const int pages)