diff --git a/src/Lib/Polygon/polygon.cxx b/src/Lib/Polygon/polygon.cxx index 1853831a..75b8873d 100644 --- a/src/Lib/Polygon/polygon.cxx +++ b/src/Lib/Polygon/polygon.cxx @@ -1058,9 +1058,9 @@ const double isEqual2D_Epsilon = 0.000001; static SGGeod SGGeod_snap( const SGGeod& in, double grid ) { - return SGGeod::fromDegM( grid * round( in.getLongitudeDeg()/grid ), - grid * round( in.getLatitudeDeg() /grid ), - grid * round( in.getElevationM() /grid ) ); + return SGGeod::fromDegM( grid * SGMisc::round( in.getLongitudeDeg()/grid ), + grid * SGMisc::round( in.getLatitudeDeg() /grid ), + grid * SGMisc::round( in.getElevationM() /grid ) ); } static bool SGGeod_isEqual2D( const SGGeod& g0, const SGGeod& g1 )