Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1499 from mikrohard/guiepggrid-improvements

GUIEPGGridContainer - use correct index for last block on screen
  • Loading branch information...
commit d062ed4d2ef0f61714f1c9a3840410f78b1b6672 2 parents 050150c + 242e4bf
@opdenkamp opdenkamp authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/epg/GUIEPGGridContainer.cpp
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.