1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-12 18:05:10 +02:00

Some more error handling fixes.

This commit is contained in:
2016-10-29 10:40:30 +02:00
parent 78fb5c1547
commit 640829d89d
11 changed files with 45 additions and 25 deletions

View File

@ -2,11 +2,6 @@
#include "wgs84.h"
#include "coordinates.h"
bool Coordinates::isValid() const
{
return (_lon >= -180.0 && _lon <= 180.0 && _lat >= -90.0 && _lat <= 90.0)
? true : false;
}
qreal Coordinates::distanceTo(const Coordinates &c) const
{