[GRASS-SVN] r34061 - grass/trunk/display/d.info

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 29 09:39:12 EDT 2008


Author: hamish
Date: 2008-10-29 09:39:12 -0400 (Wed, 29 Oct 2008)
New Revision: 34061

Modified:
   grass/trunk/display/d.info/main.c
Log:
reorder -g output to match g.region -g (merge from devbr6)

Modified: grass/trunk/display/d.info/main.c
===================================================================
--- grass/trunk/display/d.info/main.c	2008-10-29 13:34:14 UTC (rev 34060)
+++ grass/trunk/display/d.info/main.c	2008-10-29 13:39:12 UTC (rev 34061)
@@ -96,15 +96,15 @@
 	/* outer bounds of the screen (including margins) */
 	D_setup(0);
 
+	n = D_d_to_u_row(t);
+	s = D_d_to_u_row(b);
 	w = D_d_to_u_col(l);
 	e = D_d_to_u_col(r);
-	n = D_d_to_u_row(t);
-	s = D_d_to_u_row(b);
 
+	fprintf(stdout, "n=%f\n", n );
+	fprintf(stdout, "s=%f\n", s );
 	fprintf(stdout, "w=%f\n", w );
 	fprintf(stdout, "e=%f\n", e );
-	fprintf(stdout, "n=%f\n", n );
-	fprintf(stdout, "s=%f\n", s );
 	fprintf(stdout, "ewres=%.15g\n", (e-w)/(r-l) );
 	fprintf(stdout, "nsres=%.15g\n", (n-s)/(b-t) );
     }



More information about the grass-commit mailing list