1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

A more sane (and usefull) angular units compare

This commit is contained in:
Martin Tůma 2020-11-19 21:47:45 +01:00
parent c43a68c3b0
commit 75bd542feb

View File

@ -11,7 +11,12 @@ public:
AngularUnits(int code); AngularUnits(int code);
bool operator==(const AngularUnits &other) const bool operator==(const AngularUnits &other) const
{return (_code == other._code && _f == other._f);} {
if (_code == 9110)
return (other._code == 9110);
else
return (_f == other._f);
}
bool isNull() const {return std::isnan(_f);} bool isNull() const {return std::isnan(_f);}
bool isValid() const {return !std::isnan(_f);} bool isValid() const {return !std::isnan(_f);}