浏览代码

Fixed wrong precision of top and bottom region storage.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51774 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 年之前
父节点
当前提交
b96b38bfb6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/gis/wr_cellhd.c

+ 2 - 2
lib/gis/wr_cellhd.c

@@ -85,8 +85,8 @@ void G__write_Cell_head3(FILE * fd,
 
     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);