[GRASS-SVN] r29861 - grass/trunk/display/d.histogram

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 27 10:55:27 EST 2008


Author: neteler
Date: 2008-01-27 10:55:27 -0500 (Sun, 27 Jan 2008)
New Revision: 29861

Modified:
   grass/trunk/display/d.histogram/bar.c
Log:
fix for 0-1.0 range

Modified: grass/trunk/display/d.histogram/bar.c
===================================================================
--- grass/trunk/display/d.histogram/bar.c	2008-01-27 14:52:53 UTC (rev 29860)
+++ grass/trunk/display/d.histogram/bar.c	2008-01-27 15:55:27 UTC (rev 29861)
@@ -317,7 +317,7 @@
 		        if(nodata && i==dist_stats->mincat)
 			   sprintf(txt, "null");
 			else if(is_fp) {
-			   if ( (range_dmax - range_dmin) < 1.0)
+			   if ( (range_dmax - range_dmin) <= 1.0)
 				sprintf(txt,"%.2f", dmin/(double) tic_unit);
 			   else
 				sprintf(txt,"%d",(int) (dmin/(double) tic_unit));



More information about the grass-commit mailing list