[GRASS-SVN] r36823 - grass/trunk/raster/r.topidx

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Apr 20 20:26:32 EDT 2009


Author: hcho
Date: 2009-04-20 20:26:32 -0400 (Mon, 20 Apr 2009)
New Revision: 36823

Modified:
   grass/trunk/raster/r.topidx/file_io.c
   grass/trunk/raster/r.topidx/main.c
Log:
removed duplicate include and redundant parentheses

Modified: grass/trunk/raster/r.topidx/file_io.c
===================================================================
--- grass/trunk/raster/r.topidx/file_io.c	2009-04-20 21:37:39 UTC (rev 36822)
+++ grass/trunk/raster/r.topidx/file_io.c	2009-04-21 00:26:32 UTC (rev 36823)
@@ -28,8 +28,8 @@
     atb = (DCELL **) G_malloc(sizeof(DCELL *) * window.rows);
     a = (DCELL **) G_malloc(sizeof(DCELL *) * window.rows);
 
-    if ((window.ew_res < inhead.ew_res) || (window.ns_res < inhead.ns_res))
-        G_fatal_error(_("Current region resolution [%.2fx%.2f] lower than input map resolution [%.2fx%.2f]! Needs to be at least identical or the current region resolution lower than the input map resolution"),window.ew_res, window.ns_res, inhead.ew_res, inhead.ns_res);
+    if (window.ew_res < inhead.ew_res || window.ns_res < inhead.ns_res)
+        G_fatal_error(_("Current region resolution [%.2fx%.2f] lower than input map resolution [%.2fx%.2f]! Needs to be at least identical or the current region resolution lower than the input map resolution"), window.ew_res, window.ns_res, inhead.ew_res, inhead.ns_res);
 
     G_important_message(_("Reading elevation map..."));
 

Modified: grass/trunk/raster/r.topidx/main.c
===================================================================
--- grass/trunk/raster/r.topidx/main.c	2009-04-20 21:37:39 UTC (rev 36822)
+++ grass/trunk/raster/r.topidx/main.c	2009-04-21 00:26:32 UTC (rev 36823)
@@ -18,7 +18,6 @@
  *
  *****************************************************************************/
 
-#include <grass/gis.h>
 #include <grass/glocale.h>
 #include "global.h"
 



More information about the grass-commit mailing list