[GRASS-SVN] r49171 - grass/branches/develbranch_6/display/d.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Nov 10 10:26:24 EST 2011


Author: martinl
Date: 2011-11-10 07:26:24 -0800 (Thu, 10 Nov 2011)
New Revision: 49171

Modified:
   grass/branches/develbranch_6/display/d.vect/attr.c
Log:
d.vect: attempt to fix #1184

Modified: grass/branches/develbranch_6/display/d.vect/attr.c
===================================================================
--- grass/branches/develbranch_6/display/d.vect/attr.c	2011-11-10 14:54:22 UTC (rev 49170)
+++ grass/branches/develbranch_6/display/d.vect/attr.c	2011-11-10 15:26:24 UTC (rev 49171)
@@ -49,13 +49,11 @@
     Vect_rewind(Map);
     while (1) {
 	ltype = Vect_read_next_line(Map, Points, Cats);
-	switch (ltype) {
-	case -1:
+	if (ltype == -1)
 	    G_fatal_error(_("Can't read vector map"));
-	case -2:		/* EOF */
-	    return 0;
-	}
-
+	else if (ltype == -2)
+	    break;
+	
 	if (!(type & ltype))
 	    continue;		/* used for both lines and labels */
 



More information about the grass-commit mailing list