From 1226416f812acbe5bb488a6d0e0e91f2cf6c3cb7 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 1 Apr 2018 21:46:18 +0000 Subject: [PATCH] Repair a defect reading ADIF fields The search for field names in a record erroneously matches field names ending in but not exactly matching the specified field name. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8596 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- logbook/adif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logbook/adif.cpp b/logbook/adif.cpp index 568a2eb1c..a1be7de51 100644 --- a/logbook/adif.cpp +++ b/logbook/adif.cpp @@ -20,7 +20,7 @@ void ADIF::init(QString const& filename) QString ADIF::extractField(QString const& record, QString const& fieldName) const { - int fieldNameIndex = record.indexOf (fieldName + ':', 0, Qt::CaseInsensitive); + int fieldNameIndex = record.indexOf ('<' + fieldName + ':', 0, Qt::CaseInsensitive); if (fieldNameIndex >=0) { int closingBracketIndex = record.indexOf('>',fieldNameIndex);