Browse Source

libgis: always check if res > 0

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70661 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 8 years ago
parent
commit
389f087644
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/gis/wind_scan.c

+ 1 - 1
lib/gis/wind_scan.c

@@ -101,7 +101,7 @@ int G_scan_resolution(const char *buf, double *res, int projection)
 {
     if (projection == PROJECTION_LL) {
 	if (G_llres_scan(buf, res))
-	    return 1;
+	    return (*res > 0.0);
     }
 
     return (scan_double(buf, res) && *res > 0.0);