Permalink
Browse files

GUIEPGGridContainer: Prevent crash if there is only one channel with epg

Signed-off-by: Jernej Fijačko <jernej@jernej.org>
  • Loading branch information...
1 parent cdbea16 commit 1b67f2eb31d41f2870b853dfa5abd6e2201b905f @mikrohard committed Jun 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/epg/GUIEPGGridContainer.cpp
@@ -702,7 +702,7 @@ bool CGUIEPGGridContainer::OnMessage(CGUIMessage& message)
m_channelItems.push_back(item);
}
}
- if (m_epgItemsPtr.size() > 0)
+ if (items->Size() > 0)
{
itemsPointer.stop = items->Size()-1;
m_epgItemsPtr.push_back(itemsPointer);

0 comments on commit 1b67f2e

Please sign in to comment.