mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +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
|
else
|
||||||
{
|
{
|
||||||
if (Channels[itemNr]->flags & CZapitChannel::NOT_PRESENT)
|
if (itemNr < getItemCount() && (Channels[itemNr]->flags & CZapitChannel::NOT_PRESENT))
|
||||||
color = COL_MENUCONTENTINACTIVE_TEXT;
|
color = COL_MENUCONTENTINACTIVE_TEXT;
|
||||||
else
|
else
|
||||||
color = COL_MENUCONTENT_TEXT;
|
color = COL_MENUCONTENT_TEXT;
|
||||||
|
Reference in New Issue
Block a user