[GRASS-SVN] r32921 - grass/branches/releasebranch_6_3/display/d.legend

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 20 08:30:29 EDT 2008


Author: neteler
Date: 2008-08-20 08:30:29 -0400 (Wed, 20 Aug 2008)
New Revision: 32921

Modified:
   grass/branches/releasebranch_6_3/display/d.legend/main.c
Log:
catch no data map (merge from trunk, r32919)

Modified: grass/branches/releasebranch_6_3/display/d.legend/main.c
===================================================================
--- grass/branches/releasebranch_6_3/display/d.legend/main.c	2008-08-20 12:18:56 UTC (rev 32920)
+++ grass/branches/releasebranch_6_3/display/d.legend/main.c	2008-08-20 12:30:29 UTC (rev 32921)
@@ -353,6 +353,8 @@
 		    G_fatal_error(_("Range information for <%s> not available (run r.support)"), map_name);
 
 		G_get_range_min_max (&range, &min_ind, &max_ind);
+		if (G_is_c_null_value(&min_ind))
+		    G_fatal_error(_("Input map contains no data"));
 
 		G_get_color_range(&min_colr, &max_colr, &colors);
 



More information about the grass-commit mailing list