Skip to content

Commit

Permalink
Merge pull request #1499 from mikrohard/guiepggrid-improvements
Browse files Browse the repository at this point in the history
GUIEPGGridContainer - use correct index for last block on screen
  • Loading branch information
Lars Op den Kamp committed Sep 28, 2012
2 parents 050150c + 242e4bf commit d062ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbmc/epg/GUIEPGGridContainer.cpp
Expand Up @@ -1194,8 +1194,8 @@ void CGUIEPGGridContainer::SetBlock(int block)
{
if (block < 0)
m_blockCursor = 0;
else if (block > m_blocksPerPage)
m_blockCursor = m_blocksPerPage;
else if (block > m_blocksPerPage - 1)
m_blockCursor = m_blocksPerPage - 1;
else
m_blockCursor = block;
m_item = GetItem(m_channelCursor);
Expand Down

0 comments on commit d062ed4

Please sign in to comment.