Skip to content
Browse files

[epg] fixed possible crash in CGUIEPGGridContainer::Render(). credits…

… to forum user 'x-cimo'
  • Loading branch information...
1 parent d7fe56c commit d108eaf9f9aa2cdf079f7edda2f087c966be7e8d @opdenkamp opdenkamp committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/epg/GUIEPGGridContainer.cpp
View
2 xbmc/epg/GUIEPGGridContainer.cpp
@@ -321,7 +321,7 @@ void CGUIEPGGridContainer::Render()
{
/* first program starts before current view */
int startBlock = blockOffset - 1;
- while (m_gridIndex[channel][startBlock].item == item)
+ while (startBlock > 0 && m_gridIndex[channel][startBlock].item == item)
startBlock--;
block = startBlock + 1;

0 comments on commit d108eaf

Please sign in to comment.
Something went wrong with that request. Please try again.