From c05b3a5c8bfc5c6e94def2eedec57674ca89f617 Mon Sep 17 00:00:00 2001 From: Andre Dunford Date: Sat, 26 Nov 2022 00:16:32 -0800 Subject: [PATCH] fix duplicate condition in match() string comparisons --- Software/PC_Application/LibreVNA-GUI/scpi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Software/PC_Application/LibreVNA-GUI/scpi.cpp b/Software/PC_Application/LibreVNA-GUI/scpi.cpp index 1cc3ce0..a81fe99 100644 --- a/Software/PC_Application/LibreVNA-GUI/scpi.cpp +++ b/Software/PC_Application/LibreVNA-GUI/scpi.cpp @@ -17,7 +17,7 @@ bool SCPI::match(QString s1, QString s2) { if (s1.compare(s2, Qt::CaseInsensitive) == 0 || s1.compare(alternateName(s2), Qt::CaseInsensitive) == 0 - || alternateName(s1).compare(alternateName(s2), Qt::CaseInsensitive) == 0 + || alternateName(s1).compare(s2, Qt::CaseInsensitive) == 0 || alternateName(s1).compare(alternateName(s2), Qt::CaseInsensitive) == 0) { return true; } else {