This is an automated email from the git hooks/post-receive script. odyx pushed a commit to branch debian/master in repository colobot.
commit 883e07ad6a060cbcbebe553a7e6c51f1f1e505fc Author: krzys-h <krzy...@interia.pl> Date: Thu Oct 1 20:22:44 2015 +0200 Fixed mouse scroll on lists going out of range, closes #660 --- src/ui/controls/list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/controls/list.cpp b/src/ui/controls/list.cpp index 102e34b..7ed77b7 100644 --- a/src/ui/controls/list.cpp +++ b/src/ui/controls/list.cpp @@ -281,10 +281,10 @@ bool CList::EventProcess(const Event &event) { auto data = event.GetData<MouseWheelEventData>(); m_firstLine -= data->y; - if (m_firstLine < 0) - m_firstLine = 0; if (m_firstLine > m_totalLine - m_displayLine) m_firstLine = m_totalLine - m_displayLine; + if (m_firstLine < 0) + m_firstLine = 0; UpdateScroll(); UpdateButton(); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git _______________________________________________ Pkg-games-commits mailing list Pkg-games-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits