Fix bug that caused crash on Fox's sort-by-grid if grid was blank.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8649 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2018-05-09 12:39:23 +00:00
parent 698336b47b
commit 242cc9c6ab
1 changed files with 1 additions and 0 deletions

View File

@ -7400,6 +7400,7 @@ QString MainWindow::sortHoundCalls(QString t, int isort, int max_dB)
if(isort==2) { // sort Hound calls by grid
t1=map[a].split(" ",QString::SkipEmptyParts).at(1);
if(t1=="....") t1="ZZ99";
int i1=ABC.indexOf(t1.mid(0,1));
int i2=ABC.indexOf(t1.mid(1,1));
n=100*(26*i1+i2)+t1.mid(2,2).toInt();