[GRASS-SVN] r57716 - grass/trunk/display/d.northarrow

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 16 21:44:05 PDT 2013


Author: hamish
Date: 2013-09-16 21:44:05 -0700 (Mon, 16 Sep 2013)
New Revision: 57716

Modified:
   grass/trunk/display/d.northarrow/draw_n_arrow.c
   grass/trunk/display/d.northarrow/main.c
Log:
background color bugfix

Modified: grass/trunk/display/d.northarrow/draw_n_arrow.c
===================================================================
--- grass/trunk/display/d.northarrow/draw_n_arrow.c	2013-09-17 04:33:28 UTC (rev 57715)
+++ grass/trunk/display/d.northarrow/draw_n_arrow.c	2013-09-17 04:44:05 UTC (rev 57716)
@@ -83,7 +83,7 @@
     line_color->b = (unsigned char)B;
     line_color->a = RGBA_COLOR_OPAQUE;
 
-    if (D_color_number_to_RGB(fg_color, &R, &G, &B) == 0)
+    if (D_color_number_to_RGB(bg_color, &R, &G, &B) == 0)
     	/* fall back to black on failure */
     	G_str_to_color(DEFAULT_FG_COLOR, &R, &G, &B);
     fill_color->r = (unsigned char)R;

Modified: grass/trunk/display/d.northarrow/main.c
===================================================================
--- grass/trunk/display/d.northarrow/main.c	2013-09-17 04:33:28 UTC (rev 57715)
+++ grass/trunk/display/d.northarrow/main.c	2013-09-17 04:44:05 UTC (rev 57716)
@@ -65,6 +65,7 @@
 
     bg_color_opt = G_define_standard_option(G_OPT_C_BG);
     bg_color_opt->label = _("Background color");
+    bg_color_opt->answer = _("black");
     bg_color_opt->guisection = _("Colors");
 
     fsize = G_define_option();



More information about the grass-commit mailing list