[GRASS-SVN] r42948 - grass-addons/raster/r.area

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 29 12:08:24 EDT 2010


Author: hamish
Date: 2010-07-29 16:08:24 +0000 (Thu, 29 Jul 2010)
New Revision: 42948

Modified:
   grass-addons/raster/r.area/main.c
Log:
fix type check

Modified: grass-addons/raster/r.area/main.c
===================================================================
--- grass-addons/raster/r.area/main.c	2010-07-29 15:54:50 UTC (rev 42947)
+++ grass-addons/raster/r.area/main.c	2010-07-29 16:08:24 UTC (rev 42948)
@@ -81,7 +81,7 @@
 	  if (G_get_cellhd(input->answer, mapset, &cellhd) < 0)
 	G_fatal_error(_("Unable to read file header of <%s>"), input->answer);
 	
-		if (G_raster_map_type(input->answer, input->answer) != CELL_TYPE)
+		if (G_raster_map_type(input->answer, mapset) != CELL_TYPE)
 	 G_fatal_error(_("<%s> is not of type CELL, probably not crated with r.clump"), input->answer);
 	 
 	G_init_range(&range);



More information about the grass-commit mailing list