[GRASS-SVN] r47682 - grass/trunk/display/d.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 16 14:32:56 EDT 2011


Author: martinl
Date: 2011-08-16 11:32:56 -0700 (Tue, 16 Aug 2011)
New Revision: 47682

Modified:
   grass/trunk/display/d.vect/area.c
   grass/trunk/display/d.vect/lines.c
Log:
d.vect: fix colorized lines/areas (color table)


Modified: grass/trunk/display/d.vect/area.c
===================================================================
--- grass/trunk/display/d.vect/area.c	2011-08-16 18:22:25 UTC (rev 47681)
+++ grass/trunk/display/d.vect/area.c	2011-08-16 18:32:56 UTC (rev 47682)
@@ -190,7 +190,7 @@
 	}
 	
 	if (fcolor || zcolors) {
-	    if (!cvarr_rgb && !cats_color_flag && !zcolors) {
+	    if (!cvarr_rgb && !cats_color_flag && !zcolors && !colors) {
 		D_RGB_color(fcolor->r, fcolor->g, fcolor->b);
 		D_polygon_abs(Points->x, Points->y, Points->n_points);
 	    }

Modified: grass/trunk/display/d.vect/lines.c
===================================================================
--- grass/trunk/display/d.vect/lines.c	2011-08-16 18:22:25 UTC (rev 47681)
+++ grass/trunk/display/d.vect/lines.c	2011-08-16 18:32:56 UTC (rev 47682)
@@ -281,7 +281,7 @@
 	    rotation = 0.0;
 	}
 	else if (color || custom_rgb || zcolors) {
-	    if (!cvarr_rgb && !cats_color_flag && !zcolors)
+	    if (!cvarr_rgb && !cats_color_flag && !zcolors && !colors)
 		D_RGB_color(color->r, color->g, color->b);
 	    else {
 		if (custom_rgb)



More information about the grass-commit mailing list