Skip to content

Commit

Permalink
GUIEPGGridContainer: Prevent crash if there is only one channel with epg
Browse files Browse the repository at this point in the history
Signed-off-by: Jernej Fijačko <jernej@jernej.org>
  • Loading branch information
mikrohard committed Jun 4, 2012
1 parent cdbea16 commit 1b67f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/epg/GUIEPGGridContainer.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 1b67f2e

Please sign in to comment.