[GRASS-SVN] r46932 - grass/branches/develbranch_6/display/d.legend
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 2 05:04:16 EDT 2011
Author: hamish
Date: 2011-07-02 02:04:16 -0700 (Sat, 02 Jul 2011)
New Revision: 46932
Modified:
grass/branches/develbranch_6/display/d.legend/main.c
Log:
preserve fidelity if window is > 1000px
Modified: grass/branches/develbranch_6/display/d.legend/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.legend/main.c 2011-07-02 09:03:05 UTC (rev 46931)
+++ grass/branches/develbranch_6/display/d.legend/main.c 2011-07-02 09:04:16 UTC (rev 46932)
@@ -290,7 +290,7 @@
if (!get_legend_box(&x0, &x1, &y0, &y1))
exit(EXIT_SUCCESS);
G_debug(1, "mouse placement as percentage of display window "
- "[bottom,top,left,right]:\n \"at=%.1f,%.1f,%.1f,%.1f\"",
+ "[bottom,top,left,right]:\n \"at=%.2f,%.2f,%.2f,%.2f\"",
100. * (b - y1) / (b - t), 100. * (b - y0) / (b - t),
100. * x0 / (r - l), 100. * x1 / (r - l));
@@ -923,7 +923,7 @@
char buf[512];
mouse->answer = 0;
- sprintf(buf, "%s at=%.1f,%.1f,%.1f,%.1f", G_recreate_command(),
+ sprintf(buf, "%s at=%.2f,%.2f,%.2f,%.2f", G_recreate_command(),
Y1, Y0, X0, X1);
D_add_to_list(buf);
}
More information about the grass-commit
mailing list