Browse Source

display cat values of areas even if centroids are not displayed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51869 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 13 years ago
parent
commit
e93b17e1e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      display/d.vect/label.c

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

@@ -41,7 +41,7 @@ int display_label(struct Map_info *Map, int type,
 	else if (ltype == -2) /* EOF */
 	    break;
 	
-	if (!(type & ltype))
+        if (!(type & ltype) && !((type & GV_AREA) && (ltype & GV_CENTROID)))
 	    continue;		/* used for both lines and labels */
 	
 	if (ogr_centroids && ltype == GV_BOUNDARY)