1
0
Fork 0

Guard against potential cause of crash:

https://sourceforge.net/p/flightgear/codetickets/2138/
This commit is contained in:
James Turner 2020-03-16 15:50:40 +00:00
parent 25a64b2cba
commit 7688007c68

View file

@ -34,6 +34,9 @@ QString fixNavaidName(QString s)
QStringList words = s.split(QChar(' ')); QStringList words = s.split(QChar(' '));
QStringList changedWords; QStringList changedWords;
Q_FOREACH(QString w, words) { Q_FOREACH(QString w, words) {
if (w.isEmpty())
continue;
QString up = w.toUpper(); QString up = w.toUpper();
// expand common abbreviations // expand common abbreviations