]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/positioned.cxx
toggle fullscreen: also adapt GUI plane when resizing
[flightgear.git] / src / Navaids / positioned.cxx
index 974f7a980ee0863bc1772bdd54f4afb40598b499..18bb22f62b6e6717e494b5efe1680d5930dc3e01 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");
   }