[GRASS-SVN] r49173 - grass/branches/releasebranch_6_4/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Nov 10 10:40:30 EST 2011
Author: martinl
Date: 2011-11-10 07:40:30 -0800 (Thu, 10 Nov 2011)
New Revision: 49173
Modified:
grass/branches/releasebranch_6_4/display/d.vect/attr.c
Log:
d.vect: attempt to fix #1184
(merge r49171 from devbr6)
Modified: grass/branches/releasebranch_6_4/display/d.vect/attr.c
===================================================================
--- grass/branches/releasebranch_6_4/display/d.vect/attr.c 2011-11-10 15:40:23 UTC (rev 49172)
+++ grass/branches/releasebranch_6_4/display/d.vect/attr.c 2011-11-10 15:40:30 UTC (rev 49173)
@@ -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