From f991f3053a4d3496c0053c2385e27c32558ed10e Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 4 Dec 2017 22:10:36 +0000 Subject: [PATCH] Fix an incorrect index value. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8290 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- displaytext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/displaytext.cpp b/displaytext.cpp index 58a61ade8..c9b58205d 100644 --- a/displaytext.cpp +++ b/displaytext.cpp @@ -147,7 +147,7 @@ QString DisplayText::appendDXCCWorkedB4(QString message, QString const& callsign int i2=countryName.lastIndexOf(";"); if(i1>0) countryName=countryName.mid(i1+2,i2-i1-2); } else { - if(i1>0) countryName=countryName.mid(0,i1-1); + if(i1>0) countryName=countryName.mid(0,i1); // do some obvious abbreviations countryName.replace ("Islands", "Is."); countryName.replace ("Island", "Is.");