[GRASS-SVN] r29863 -
grass/branches/releasebranch_6_3/display/d.histogram
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 27 11:32:25 EST 2008
Author: neteler
Date: 2008-01-27 11:32:25 -0500 (Sun, 27 Jan 2008)
New Revision: 29863
Modified:
grass/branches/releasebranch_6_3/display/d.histogram/bar.c
Log:
range fix (merge from HEAD)
Modified: grass/branches/releasebranch_6_3/display/d.histogram/bar.c
===================================================================
--- grass/branches/releasebranch_6_3/display/d.histogram/bar.c 2008-01-27 16:27:38 UTC (rev 29862)
+++ grass/branches/releasebranch_6_3/display/d.histogram/bar.c 2008-01-27 16:32:25 UTC (rev 29863)
@@ -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