diff options
author | Lars Op den Kamp <lars@opdenkamp.eu> | 2013-01-11 01:23:43 +0100 |
---|---|---|
committer | Lars Op den Kamp <lars@opdenkamp.eu> | 2013-01-11 01:23:55 +0100 |
commit | d108eaf9f9aa2cdf079f7edda2f087c966be7e8d (patch) | |
tree | 2e3ee0c510f6b7d6c9192588bf2e8e52924aa209 | |
parent | d7fe56c78356b91d2115e464eeb570df6519a58e (diff) |
[epg] fixed possible crash in CGUIEPGGridContainer::Render(). credits to forum user 'x-cimo'
-rw-r--r-- | xbmc/epg/GUIEPGGridContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/epg/GUIEPGGridContainer.cpp b/xbmc/epg/GUIEPGGridContainer.cpp index 4bea58471f..29e52bce7d 100644 --- a/xbmc/epg/GUIEPGGridContainer.cpp +++ b/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; |