From 747d7e2ff23e89a4171c1dca911683b50bfbc2b7 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sat, 11 Oct 2014 13:19:43 +0400 Subject: [PATCH] gui/bedit/bouqueteditor_chanselect.cpp: fix crash after commit ebd0259cfc6404e9783deb834f58188467519e9c --- src/gui/bedit/bouqueteditor_chanselect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/bedit/bouqueteditor_chanselect.cpp b/src/gui/bedit/bouqueteditor_chanselect.cpp index 0816e98d9..746f05850 100644 --- a/src/gui/bedit/bouqueteditor_chanselect.cpp +++ b/src/gui/bedit/bouqueteditor_chanselect.cpp @@ -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;