Skip to content

Commit

Permalink
Fix handling of empty labels through mapscript (#5240)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Feb 13, 2016
1 parent 2f3e195 commit 5a83df5
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 @@ -2047,7 +2047,7 @@ int msDrawPoint(mapObj *map, layerObj *layer, pointObj *point, imageObj *image,
return MS_FAILURE;
}
}
if(labeltext) {
if(labeltext && *labeltext) {
textSymbolObj *ts = msSmallMalloc(sizeof(textSymbolObj));
initTextSymbol(ts);
msPopulateTextSymbolForLabelAndString(ts, label, msStrdup(labeltext), layer->scalefactor, image->resolutionfactor, layer->labelcache);
Expand Down

0 comments on commit 5a83df5

Please sign in to comment.