gui/bedit/bouqueteditor_chanselect.cpp: fix crash after

commit ebd0259cfc
This commit is contained in:
[CST] Focus
2014-10-11 13:19:43 +04:00
parent 01b71dc589
commit 747d7e2ff2

View File

@@ -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;