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
This commit is contained in:
Joe Taylor 2017-12-04 22:10:36 +00:00
parent 5d0236755d
commit f991f3053a

View File

@ -147,7 +147,7 @@ QString DisplayText::appendDXCCWorkedB4(QString message, QString const& callsign
int i2=countryName.lastIndexOf(";"); int i2=countryName.lastIndexOf(";");
if(i1>0) countryName=countryName.mid(i1+2,i2-i1-2); if(i1>0) countryName=countryName.mid(i1+2,i2-i1-2);
} else { } else {
if(i1>0) countryName=countryName.mid(0,i1-1); if(i1>0) countryName=countryName.mid(0,i1);
// do some obvious abbreviations // do some obvious abbreviations
countryName.replace ("Islands", "Is."); countryName.replace ("Islands", "Is.");
countryName.replace ("Island", "Is."); countryName.replace ("Island", "Is.");