Skip to content
Permalink
Browse files
Fix handling of empty labels through mapscript (#5240)
  • Loading branch information
tbonfort committed Feb 13, 2016
1 parent 2f3e195 commit 5a83df5450b2480b672e99fb42a0e46222ecc0e4
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 5a83df5

Please sign in to comment.