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