[GRASS-SVN] r45310 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 4 04:23:38 EST 2011
Author: hamish
Date: 2011-02-04 01:23:38 -0800 (Fri, 04 Feb 2011)
New Revision: 45310
Modified:
grass/trunk/ps/ps.map/main.c
Log:
-b flag relative to the top-left of the paper
Modified: grass/trunk/ps/ps.map/main.c
===================================================================
--- grass/trunk/ps/ps.map/main.c 2011-02-04 09:13:15 UTC (rev 45309)
+++ grass/trunk/ps/ps.map/main.c 2011-02-04 09:23:38 UTC (rev 45310)
@@ -725,7 +725,8 @@
if (bflag->answer) {
map_setup();
fprintf(stdout, "bbox=%.3f,%.3f,%.3f,%.3f\n", PS.map_left / 72.0,
- PS.map_top / 72.0, PS.map_right / 72.0, PS.map_bot / 72.0);
+ PS.page_height - (PS.map_bot / 72.0), PS.map_right / 72.0,
+ PS.page_height - (PS.map_top / 72.0));
/* +/- 0.5 ? see ps.map.c brd.* */
unlink(output_file->answer); /* fixme: don't open it in the first place */
exit(EXIT_SUCCESS);
More information about the grass-commit
mailing list