Procházet zdrojové kódy

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 před 13 roky
rodič
revize
86f1e229fb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,