mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
gui/bedit/bouqueteditor_chanselect.cpp: fix crash after
commit0e5d9a714c
Origin commit data ------------------ Commit:747d7e2ff2
Author: [CST] Focus <focus.cst@gmail.com> Date: 2014-10-11 (Sat, 11 Oct 2014)
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