From 75515f14ba06550abb3f8698ab2a25ba237d34f5 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 15 Nov 2012 10:32:06 +0100 Subject: [PATCH] fix MSVC build --- src/Lib/Polygon/polygon.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 )