From 124f58c40fb31c263767184e2fa9ceeebeb34bd7 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 70c585889cfc7a97df1ab7c783a90f35af6c42d4 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/747d7e2ff23e89a4171c1dca911683b50bfbc2b7 Author: [CST] Focus Date: 2014-10-11 (Sat, 11 Oct 2014) ------------------ This commit was generated by Migit --- 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;