Skip to content

Commit

Permalink
Merge pull request #1025 from podtalje/master
Browse files Browse the repository at this point in the history
Index out of bound in panel container
  • Loading branch information
jmarshallnz committed May 29, 2012
2 parents 049847a + 5291479 commit 303712d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/guilib/GUIPanelContainer.cpp
Expand Up @@ -352,7 +352,7 @@ bool CGUIPanelContainer::MoveLeft(bool wrapAround)
{ // wrap around
SetCursor(GetCursor() + m_itemsPerRow - 1);
if (GetOffset() * m_itemsPerRow + GetCursor() >= (int)m_items.size())
SetCursor((int)m_items.size() - GetOffset() * m_itemsPerRow);
SetCursor((int)m_items.size() - GetOffset() * m_itemsPerRow - 1);
}
else
return false;
Expand Down

0 comments on commit 303712d

Please sign in to comment.