Permalink
Browse files

The text param of point->draw in php is now optional, no need of strl…

…en(labeltext) in libmapserver (#4572)
  • Loading branch information...
1 parent 1097872 commit b8c297ceb35a824dd21074cb527b5ce78262c32f Alan Boudreault committed Apr 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mapdraw.c
View
@@ -2243,7 +2243,7 @@ int msDrawPoint(mapObj *map, layerObj *layer, pointObj *point, imageObj *image,
if(msScaleInBounds(map->scaledenom, theclass->styles[s]->minscaledenom, theclass->styles[s]->maxscaledenom))
msDrawMarkerSymbol(&map->symbolset, image, point, theclass->styles[s], layer->scalefactor);
}
- if(labeltext && (strlen(labeltext)>0)) {
+ if(labeltext) {
if(layer->labelcache) {
if(msAddLabel(map, label, layer->index, classindex, NULL, point, NULL, -1) != MS_SUCCESS) return(MS_FAILURE);
} else

0 comments on commit b8c297c

Please sign in to comment.