[GRASS-SVN] r56037 - grass/branches/develbranch_6/display/d.grid
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Apr 29 23:56:33 PDT 2013
Author: hamish
Date: 2013-04-29 23:56:33 -0700 (Mon, 29 Apr 2013)
New Revision: 56037
Modified:
grass/branches/develbranch_6/display/d.grid/plot.c
Log:
improved label placement not dependent on region resolution
Modified: grass/branches/develbranch_6/display/d.grid/plot.c
===================================================================
--- grass/branches/develbranch_6/display/d.grid/plot.c 2013-04-29 14:03:53 UTC (rev 56036)
+++ grass/branches/develbranch_6/display/d.grid/plot.c 2013-04-30 06:56:33 UTC (rev 56037)
@@ -276,9 +276,9 @@
start_coord = e1;
/* font rotates by bottom-left corner, try to keep top-left cnr on screen */
- if(font_angle - 270 > 0) {
+ if (font_angle - 270 > 0) {
extra_y_off = sin((font_angle - 270) * M_PI/180) * fontsize;
- if(D_u_to_a_row(n1) < extra_y_off)
+ if (D_u_to_d_row(n1) - D_get_d_north() < extra_y_off + grid_off)
start_coord = -9999.; /* wait until the next point south */
}
}
More information about the grass-commit
mailing list