[GRASS-SVN] r40017 - in grass/trunk: general/g.region lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 15 06:37:05 EST 2009


Author: hamish
Date: 2009-12-15 06:37:05 -0500 (Tue, 15 Dec 2009)
New Revision: 40017

Modified:
   grass/trunk/general/g.region/printwindow.c
   grass/trunk/lib/gis/wr_cellhd.c
Log:
tbres is not measured in degrees (bug #821; merge from devbr6)

Modified: grass/trunk/general/g.region/printwindow.c
===================================================================
--- grass/trunk/general/g.region/printwindow.c	2009-12-15 11:35:00 UTC (rev 40016)
+++ grass/trunk/general/g.region/printwindow.c	2009-12-15 11:37:05 UTC (rev 40017)
@@ -35,7 +35,7 @@
     G_format_resolution(window->ew_res3, ewres3, x);
     G_format_resolution(window->ns_res, nsres, x);
     G_format_resolution(window->ns_res3, nsres3, x);
-    G_format_resolution(window->tb_res, tbres, x);
+    G_format_resolution(window->tb_res, tbres, -1);
     G_begin_distance_calculations();
 
     /* EW Dist at North edge */

Modified: grass/trunk/lib/gis/wr_cellhd.c
===================================================================
--- grass/trunk/lib/gis/wr_cellhd.c	2009-12-15 11:35:00 UTC (rev 40016)
+++ grass/trunk/lib/gis/wr_cellhd.c	2009-12-15 11:37:05 UTC (rev 40017)
@@ -98,6 +98,6 @@
     G_format_resolution(cellhd->ns_res3, buf, fmt);
     fprintf(fd, "n-s resol3: %s\n", buf);
 
-    G_format_resolution(cellhd->tb_res, buf, fmt);
+    G_format_resolution(cellhd->tb_res, buf, -1);
     fprintf(fd, "t-b resol:  %s\n", buf);
 }



More information about the grass-commit mailing list