[mapserver-commits] r12755 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Nov 7 06:03:05 EST 2011


Author: tbonfort
Date: 2011-11-07 03:03:05 -0800 (Mon, 07 Nov 2011)
New Revision: 12755

Modified:
   trunk/mapserver/mapgd.c
Log:
fix segfault on gd label follow


Modified: trunk/mapserver/mapgd.c
===================================================================
--- trunk/mapserver/mapgd.c	2011-11-04 18:27:58 UTC (rev 12754)
+++ trunk/mapserver/mapgd.c	2011-11-07 11:03:05 UTC (rev 12755)
@@ -399,11 +399,13 @@
    SETPEN(ip, style->outlinecolor);
 
    if(style->antialias) {
-      c = style->color->pen;
+      if(style->color)
+         c = style->color->pen;
       if(style->outlinewidth > 0)
          oc = style->outlinecolor->pen;
    } else {
-      c = -style->color->pen;
+      if(style->color)
+         c = -style->color->pen;
       if(style->outlinewidth > 0)
          oc = -style->outlinecolor->pen;
    }



More information about the mapserver-commits mailing list