[GRASS-SVN] r51774 - grass/trunk/lib/gis
    svn_grass at osgeo.org 
    svn_grass at osgeo.org
       
    Sat May 26 08:20:57 EDT 2012
    
    
  
Author: huhabla
Date: 2012-05-26 05:20:56 -0700 (Sat, 26 May 2012)
New Revision: 51774
Modified:
   grass/trunk/lib/gis/wr_cellhd.c
Log:
Fixed wrong precision of top and bottom region storage.
Modified: grass/trunk/lib/gis/wr_cellhd.c
===================================================================
--- grass/trunk/lib/gis/wr_cellhd.c	2012-05-26 11:30:14 UTC (rev 51773)
+++ grass/trunk/lib/gis/wr_cellhd.c	2012-05-26 12:20:56 UTC (rev 51774)
@@ -85,8 +85,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