Skip to content

Commit

Permalink
The text param of point->draw in php is now optional, no need of strl…
Browse files Browse the repository at this point in the history
…en(labeltext) in libmapserver (#4572)
  • Loading branch information
Alan Boudreault committed Apr 29, 2013
1 parent 1097872 commit b8c297c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8c297c

Please sign in to comment.