[GRASSLIST:5646] Re: v.digit color mismatch found (CORRECTION)

cheg01 at attbi.com cheg01 at attbi.com
Sun Feb 23 05:20:26 EST 2003


---- Original Message -----
From: <cheg01 at attbi.com>
To: <GRASSLIST at baylor.edu>
Sent: Sunday, February 23, 2003 2:10 AM
Subject: [GRASSLIST:5645] v.digit color mismatch found


> 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[] = {
>     "            ",
>     "       red",
>     "  orange",
>     "  yellow",
>     "   green",
>     "      blue",
>     "   indigo",
>     "    violet",
>     "    white",
>     "    black",
>     "      grey",
>     "   brown",
>     "magenta",
>     "     aqua",
>     "            ",
>     "            "
> };
>
> To fix it, edit the color_names list to match the D_COLOR_LIST and
> recompile v.digit.
>

Sorry , I sent the CORRECTED version of color_names[].
the original (incorrect) version is
static char *color_names[] = {
     "             ",
     "     white",
     "     black",
     "    yellow",
     "       blue",
     "        red",
     "     green",
     "   orange",
     "       grey",
     " magenta",
     "      aqua",
     "    indigo",
     "     violet",
     "   brown",
     "             ",
     "            "
};




More information about the grass-user mailing list