Permalink
Browse files

GUIEPGGridContainer - use correct index for last block on screen

  • Loading branch information...
1 parent 050150c commit 242e4bf65ca5bde916e648eea6df5445745468ed @mikrohard committed Sep 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/epg/GUIEPGGridContainer.cpp
@@ -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);

0 comments on commit 242e4bf

Please sign in to comment.