[GRASS-SVN] r51775 - grass/branches/releasebranch_6_4/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 26 08:27:13 EDT 2012


Author: neteler
Date: 2012-05-26 05:27:12 -0700 (Sat, 26 May 2012)
New Revision: 51775

Modified:
   grass/branches/releasebranch_6_4/lib/gis/wr_cellhd.c
Log:
Fixed wrong precision of top and bottom region storage (trunk, r51774)

Modified: grass/branches/releasebranch_6_4/lib/gis/wr_cellhd.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/gis/wr_cellhd.c	2012-05-26 12:20:56 UTC (rev 51774)
+++ grass/branches/releasebranch_6_4/lib/gis/wr_cellhd.c	2012-05-26 12:27:12 UTC (rev 51775)
@@ -87,8 +87,8 @@
 
     G__write_Cell_head(fd, cellhd, is_cellhd);
 
-    fprintf(fd, "top:        %g\n", cellhd->top);
-    fprintf(fd, "bottom:     %g\n", cellhd->bottom);
+    fprintf(fd, "top:        %.15f\n", cellhd->top);
+    fprintf(fd, "bottom:     %.15f\n", cellhd->bottom);
 
     fprintf(fd, "cols3:      %d\n", cellhd->cols3);
     fprintf(fd, "rows3:      %d\n", cellhd->rows3);



More information about the grass-commit mailing list