浏览代码

d.vect: try to display area only if map contains some centroids/boundaries

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50534 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
86f1e229fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      display/d.vect/shape.c

+ 1 - 1
display/d.vect/shape.c

@@ -180,7 +180,7 @@ int display_shape(struct Map_info *Map, int type, struct cat_list *Clist, const
     }
 
     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,