Skip to content

Commit

Permalink
Small fix for Qt 5.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Dec 18, 2016
1 parent ca6fc63 commit e060359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/StelLocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ StelLocation StelLocation::createFromLine(const QString& rawline)
loc.country = splitline.at(2).trimmed();

loc.role = splitline.at(3).at(0).toUpper();
if (loc.role == '\0')
loc.role = 'X';
if (loc.role.isNull())
loc.role = QChar(0x0058); // char 'X'
loc.population = (int) (splitline.at(4).toFloat()*1000);

const QString& latstring = splitline.at(5).trimmed();
Expand Down

0 comments on commit e060359

Please sign in to comment.