[GRASS-SVN] r56857 - grass/trunk/display/d.barscale

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 20 20:31:17 PDT 2013


Author: hamish
Date: 2013-06-20 20:31:17 -0700 (Thu, 20 Jun 2013)
New Revision: 56857

Modified:
   grass/trunk/display/d.barscale/draw_scale.c
Log:
add support for new north arrow symbol

Modified: grass/trunk/display/d.barscale/draw_scale.c
===================================================================
--- grass/trunk/display/d.barscale/draw_scale.c	2013-06-21 02:55:40 UTC (rev 56856)
+++ grass/trunk/display/d.barscale/draw_scale.c	2013-06-21 03:31:17 UTC (rev 56857)
@@ -117,6 +117,9 @@
 		D_pos_abs(x_pos - (tr + tl) / 2, y_pos - 70);
 		D_text("N");
 		break;
+	    case '9':
+		D_pos_abs(x_pos - (tr + tl) / 2, y_pos - 55);
+		D_text("N");
 	    case '2':
 	    case '5':
 	    case '6':
@@ -147,7 +150,7 @@
 	fill_color->b = (unsigned char)B;
 	fill_color->a = RGBA_COLOR_OPAQUE;
 
-	if (n_arrow_num[0] == '2')
+	if (n_arrow_num[0] == '2' || n_arrow_num[0] == '9')
 	    fill_color->a = RGBA_COLOR_TRANSPARENT;
 
 	/* sizes manually tuned */
@@ -172,6 +175,7 @@
 	    symbol_size = 23.;
 	    break;
 	case '8':
+	case '9':
 	    symbol_size = 17.;
 	    break;
 	default:



More information about the grass-commit mailing list