[GRASS-SVN] r32919 - grass/trunk/display/d.legend
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 20 08:18:35 EDT 2008
Author: neteler
Date: 2008-08-20 08:18:35 -0400 (Wed, 20 Aug 2008)
New Revision: 32919
Modified:
grass/trunk/display/d.legend/main.c
Log:
catch no data map
Modified: grass/trunk/display/d.legend/main.c
===================================================================
--- grass/trunk/display/d.legend/main.c 2008-08-20 12:12:22 UTC (rev 32918)
+++ grass/trunk/display/d.legend/main.c 2008-08-20 12:18:35 UTC (rev 32919)
@@ -329,6 +329,8 @@
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