From c73a56a9364b0e7050a848929d83d9cf2a203ecc Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 12 Jul 2022 22:48:49 +0200 Subject: [PATCH] channellist: fix numeric zap input Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ccc14fa0a7ae60f6acb3fb7cd874c5a9e7e7620c Author: vanhofen Date: 2022-07-12 (Tue, 12 Jul 2022) Origin message was: ------------------ - channellist: fix numeric zap input --- src/gui/channellist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 1a28e4f9c..4a4089d77 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1425,7 +1425,7 @@ int CChannelList::numericZap(int key) // do nothing } else if (CRCInput::isNumeric(msg)) { - if (pos == 4) { + if (pos == (int) maxchansize) { chn = 0; pos = 1; } else {