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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 29 06:57:43 PDT 2012


Author: mlennert
Date: 2012-05-29 06:57:41 -0700 (Tue, 29 May 2012)
New Revision: 51869

Modified:
   grass/trunk/display/d.vect/label.c
Log:
display cat values of areas even if centroids are not displayed


Modified: grass/trunk/display/d.vect/label.c
===================================================================
--- grass/trunk/display/d.vect/label.c	2012-05-29 12:16:11 UTC (rev 51868)
+++ grass/trunk/display/d.vect/label.c	2012-05-29 13:57:41 UTC (rev 51869)
@@ -41,7 +41,7 @@
 	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)



More information about the grass-commit mailing list