[GRASS5] v.digit color name mismatch

Bernhard Reiter bernhard at intevation.de
Mon Feb 24 10:41:54 EST 2003


Cheg,
thanks for your help!

Can you add your solution to bug report #1670?

 https://intevation.de/rt/webrt?serial_num=1670&display=History
 This is possible using email.
 mail to grass-bugs a t intevation.de
 having the following string within the subject line:
	[bug #1670]

If you can produce a patch against CVS head
somebody with CVS access will commit it.

Thanks again,
	Bernhard

On Sun, Feb 23, 2003 at 09:59:49PM -0800, cheg01 at attbi.com wrote:
> I found the source of the incorrect behavior of the
> v.digit->Customize->Color menu. The color names do not match the colors
> used in the display fo the following reason:
> 
> The colors used in the display are defined in the file
> <grass_dir>/src/include/colors.h:
> 
> #define D_COLOR_LIST:
> "red,orange,yellow,green,blue,indigo,violet,white,black,gray,brown,magenta,
> aqua,grey"
> 
> The color names used in v.digit are defined in the file
> <grass_dir>/src/mapdev/v.digit/color.c:
> 
> static char *color_names[] = {
>      "             ",
>      "     white",
>      "     black",
>      "    yellow",
>      "       blue",
>      "        red",
>      "     green",
>      "   orange",
>      "       grey",
>      " magenta",
>      "      aqua",
>      "    indigo",
>      "     violet",
>      "   brown",
>      "             ",
>      "            "
> };
> 
> 
> To fix it, edit the color_names list to match the D_COLOR_LIST and
> recompile v.digit.




More information about the grass-dev mailing list