Guard against potential cause of crash:
https://sourceforge.net/p/flightgear/codetickets/2138/
This commit is contained in:
parent
25a64b2cba
commit
7688007c68
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ QString fixNavaidName(QString s)
|
|||
QStringList words = s.split(QChar(' '));
|
||||
QStringList changedWords;
|
||||
Q_FOREACH(QString w, words) {
|
||||
if (w.isEmpty())
|
||||
continue;
|
||||
|
||||
QString up = w.toUpper();
|
||||
|
||||
// expand common abbreviations
|
||||
|
|
Loading…
Reference in a new issue