fixed mistake in listbox code #1463

This commit is contained in:
oy 2016-06-13 10:19:17 +02:00
parent 7ebcb77072
commit 7cd566b4ac

View file

@ -871,7 +871,7 @@ CMenus::CListboxItem CMenus::UiDoListboxNextRow()
if(Item.m_Rect.y+Item.m_Rect.h > gs_ListBoxOriginalView.y)
{
if(Item.m_HitRect.y < Item.m_HitRect.y) // clip the selection
if(Item.m_HitRect.y < gs_ListBoxOriginalView.y) // clip the selection
{
Item.m_HitRect.h -= gs_ListBoxOriginalView.y-Item.m_HitRect.y;
Item.m_HitRect.y = gs_ListBoxOriginalView.y;