]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/positioned.cxx
Whoops, work-around for #926 correctly.
[flightgear.git] / src / Navaids / positioned.cxx
index 974f7a980ee0863bc1772bdd54f4afb40598b499..bced11728b6064a703689c3fb499dbddb75c5e30 100644 (file)
@@ -33,8 +33,6 @@
 #include <boost/algorithm/string/case_conv.hpp>
 #include <boost/algorithm/string/predicate.hpp>
 
-#include <osg/Math> // for osg::isNaN
-
 #include <simgear/timing/timestamp.hxx>
 #include <simgear/debug/logstream.hxx>
 #include <simgear/structure/exception.hxx>
@@ -48,8 +46,8 @@ using namespace flightgear;
 
 static void validateSGGeod(const SGGeod& geod)
 {
-  if (osg::isNaN(geod.getLatitudeDeg()) ||
-      osg::isNaN(geod.getLongitudeDeg()))
+  if (SGMisc<double>::isNaN(geod.getLatitudeDeg()) ||
+      SGMisc<double>::isNaN(geod.getLongitudeDeg()))
   {
     throw sg_range_exception("position is invalid, NaNs");
   }
@@ -133,7 +131,7 @@ FGPositioned::Type FGPositioned::typeFromName(const std::string& aName)
     }
   }
   
-  SG_LOG(SG_GENERAL, SG_WARN, "FGPositioned::typeFromName: couldn't match:" << aName);
+  SG_LOG(SG_NAVAID, SG_WARN, "FGPositioned::typeFromName: couldn't match:" << aName);
   return INVALID;
 }