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 with 1 addition and 1 deletion.
  1. +1 −1 mapdraw.c
View
@@ -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.