[mapserver-commits] r8192 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Dec 4 10:47:26 EST 2008


Author: tbonfort
Date: 2008-12-04 10:47:26 -0500 (Thu, 04 Dec 2008)
New Revision: 8192

Modified:
   trunk/mapserver/mapagg.cpp
Log:
skip degenerate lines once they have been transformed to pixel coordinates

Modified: trunk/mapserver/mapagg.cpp
===================================================================
--- trunk/mapserver/mapagg.cpp	2008-12-04 10:14:39 UTC (rev 8191)
+++ trunk/mapserver/mapagg.cpp	2008-12-04 15:47:26 UTC (rev 8192)
@@ -2456,6 +2456,9 @@
             } else {
                 shape->line[i].numpoints=k;
             }
+            //skip degenerate line once more
+            if(shape->line[i].numpoints<2)
+            	shape->line[i].numpoints=0;
         }
     }
     else if(shape->type == MS_SHAPE_POLYGON) {



More information about the mapserver-commits mailing list