From ed6a3fd97935871cf7a116aa081a61f11716face Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 1 Jul 2016 11:37:10 +0000 Subject: [PATCH] Allow for empty decode messages when extracting received reports git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6841 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- decodedtext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decodedtext.cpp b/decodedtext.cpp index b54080971..35cba4110 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -86,7 +86,8 @@ bool DecodedText::report(QString const& myBaseCall, QString const& dxBaseCall, / bool b = stdmsg_(msg.mid(0,22).toLatin1().constData(),22); // stdmsg is a fortran routine that packs the text, unpacks it and compares the result QStringList w=msg.split(" ",QString::SkipEmptyParts); - if(b && (w[0] == myBaseCall + if(w.size () + && b && (w[0] == myBaseCall || w[0].endsWith ("/" + myBaseCall) || w[0].startsWith (myBaseCall + "/") || (w.size () > 1 && !dxBaseCall.isEmpty ()