[mapserver-commits] r8492 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Feb 3 17:21:35 EST 2009


Author: tamas
Date: 2009-02-03 17:21:35 -0500 (Tue, 03 Feb 2009)
New Revision: 8492

Modified:
   trunk/mapserver/mapdraw.c
Log:
Fix segfault in msDrawVectorLayer

Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c	2009-02-03 21:27:07 UTC (rev 8491)
+++ trunk/mapserver/mapdraw.c	2009-02-03 22:21:35 UTC (rev 8492)
@@ -890,7 +890,8 @@
     }
   
     cache = MS_FALSE;
-    if(layer->type == MS_LAYER_LINE && (layer->class[shape.classindex]->numstyles > 1||layer->class[shape.classindex]->styles[0]->outlinewidth>0))
+    if(layer->type == MS_LAYER_LINE && (layer->class[shape.classindex]->numstyles > 1 || 
+        (layer->class[shape.classindex]->numstyles == 1 && layer->class[shape.classindex]->styles[0]->outlinewidth>0)))
       cache = MS_TRUE; /* only line layers with multiple styles need be cached (I don't think POLYLINE layers need caching - SDL) */
          
     /* With 'STYLEITEM AUTO', we will have the datasource fill the class' */



More information about the mapserver-commits mailing list