[GRASS-SVN] r50534 - grass/trunk/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 29 07:31:47 EST 2012
Author: martinl
Date: 2012-01-29 04:31:46 -0800 (Sun, 29 Jan 2012)
New Revision: 50534
Modified:
grass/trunk/display/d.vect/shape.c
Log:
d.vect: try to display area only if map contains some centroids/boundaries
Modified: grass/trunk/display/d.vect/shape.c
===================================================================
--- grass/trunk/display/d.vect/shape.c 2012-01-28 20:56:15 UTC (rev 50533)
+++ grass/trunk/display/d.vect/shape.c 2012-01-29 12:31:46 UTC (rev 50534)
@@ -180,7 +180,7 @@
}
stat = 0;
- if (type & GV_AREA)
+ if (type & GV_AREA && Vect_get_num_primitives(Map, GV_CENTROID | GV_BOUNDARY) > 0)
stat += display_area(Map, Clist, window,
bcolor, fcolor, chcat,
id_flag, cats_colors_flag,
More information about the grass-commit
mailing list