Skip to content

Commit

Permalink
MythUIButtonList::MoveDown: Prevent segfault when there are not enoug…
Browse files Browse the repository at this point in the history
…h items

to process.
  • Loading branch information
jpoet committed Aug 3, 2012
1 parent b379de3 commit ff9073d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythuibuttonlist.cpp
Expand Up @@ -2040,6 +2040,8 @@ bool MythUIButtonList::MoveDown(MovementUnit unit, uint amount)
break;

case MoveRow:
if (m_itemList.empty() || m_columns < 1)
return true;
if (m_scrollStyle != ScrollFree)
{
m_selPosition += m_columns;
Expand Down

0 comments on commit ff9073d

Please sign in to comment.