From 75bd542feb44849c3af76144baa801ce2238117f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 19 Nov 2020 21:47:45 +0100 Subject: [PATCH] A more sane (and usefull) angular units compare --- src/map/angularunits.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/map/angularunits.h b/src/map/angularunits.h index d605c341..41002d76 100644 --- a/src/map/angularunits.h +++ b/src/map/angularunits.h @@ -11,7 +11,12 @@ public: AngularUnits(int code); 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 isValid() const {return !std::isnan(_f);}