Permalink
Browse files

Fix PHP building when GD is disabled. Closes #4550

  • Loading branch information...
1 parent 86fc175 commit 1665673e5ef133c91dd003fc81c96e0c6a7985d2 @tbonfort tbonfort committed Mar 28, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 mapscript/php/mapscript_i.c
@@ -1033,7 +1033,9 @@ char *classObj_getTextString(classObj *self)
int classObj_drawLegendIcon(classObj *self, mapObj *map, layerObj *layer, int width, int height, imageObj *dstImg, int dstX, int dstY)
{
+#ifdef USE_GD
msClearLayerPenValues(layer); // just in case the mapfile has already been processed
+#endif
return msDrawLegendIcon(map, layer, self, width, height, dstImg, dstX, dstY);
}

0 comments on commit 1665673

Please sign in to comment.