d.colors
Markus Neteler
neteler at geog.uni-hannover.de
Wed Dec 1 08:09:58 EST 1999
> I'm trying to redefine colors for a raster map containing five
> categories (0,1,2,3,4), but in d.colors I can never access categorie 4.
> The cursor runs through 0-3 =, but alsays skips cat 4.
> What can I do ?
Hi Moritz,
obviously this is a bug. Luckily I could fix it:
You have to update
src/display/d.colors/interact.c and
src/display/d.colors/curses.c
diff interact.c interact.c.org
118c118
< tmp = tmp % (categories->num + 2) ;
---
> tmp = tmp % (categories->num + 1) ;
diff curses.c curses.c.org
91c91
< for (at_cat = start_cat ; at_cat <= pcats->num+1 ; at_cat++)
---
> for (at_cat = start_cat ; at_cat <= end_cat ; at_cat++)
Then it works properly (at least here).
The next GRASS 5beta release will contain the fix.
Best regards
Markus Neteler
More information about the grass-user
mailing list