mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
gui/bedit/bouqueteditor_chanselect.cpp: fix crash after
commit ebd0259cfc
This commit is contained in:
@@ -124,7 +124,7 @@ void CBEChannelSelectWidget::paintItem(uint32_t itemNr, int paintNr, bool pselec
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Channels[itemNr]->flags & CZapitChannel::NOT_PRESENT)
|
||||
if (itemNr < getItemCount() && (Channels[itemNr]->flags & CZapitChannel::NOT_PRESENT))
|
||||
color = COL_MENUCONTENTINACTIVE_TEXT;
|
||||
else
|
||||
color = COL_MENUCONTENT_TEXT;
|
||||
|
Reference in New Issue
Block a user