Skip to content
This repository
Browse code

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

… to forum user 'x-cimo'
  • Loading branch information...
commit d108eaf9f9aa2cdf079f7edda2f087c966be7e8d 1 parent d7fe56c
Lars Op den Kamp authored January 11, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/epg/GUIEPGGridContainer.cpp
2  xbmc/epg/GUIEPGGridContainer.cpp
@@ -321,7 +321,7 @@ void CGUIEPGGridContainer::Render()
321 321
     {
322 322
       /* first program starts before current view */
323 323
       int startBlock = blockOffset - 1;
324  
-      while (m_gridIndex[channel][startBlock].item == item)
  324
+      while (startBlock > 0 && m_gridIndex[channel][startBlock].item == item)
325 325
         startBlock--;
326 326
 
327 327
       block = startBlock + 1;

0 notes on commit d108eaf

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