Skip to content

Commit

Permalink
Update OpenAir.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Mar 2, 2025
1 parent d49fcf8 commit f5593c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/geomaps/OpenAir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ class AirSpace {
if (items[1].compare(u"S"_s) == 0)
{
latitude *= -1;
} else if (items[1].compare(u"N"_s) != 0)
}
else if (items[1].compare(u"N"_s) != 0)
{
throw QObject::tr("Invalid coordinate found: %1", "OpenAir").arg(qs);
}
Expand All @@ -376,11 +377,12 @@ class AirSpace {
if (items[3].compare(u"W"_s) == 0)
{
longitude *= -1;
} else if (items[3].compare(u"E"_s) != 0)
}
else if (items[3].compare(u"E"_s) != 0)
{
throw QObject::tr("Invalid coordinate found: %1", "OpenAir").arg(qs);
}
if ((latitude > 180) || (latitude < -180) || (longitude > 90) || (longitude < -90))
if ((latitude > 90) || (latitude < -90) || (longitude > 180) || (longitude < -180))
{
throw QObject::tr("Invalid coordinate found: %1", "OpenAir").arg(qs);
}
Expand Down

0 comments on commit f5593c4

Please sign in to comment.