Permalink
Browse files

Fix handling of non-labelcached empty labels (#5241)

closes #5241
  • Loading branch information...
tbonfort committed Feb 15, 2016
1 parent 5a83df5 commit 9ade01a09ee896b1bf43d33728acafb67e122f93
Showing with 3 additions and 0 deletions.
  1. +3 −0 mapdraw.c
View
@@ -2089,6 +2089,9 @@ int msDrawLabel(mapObj *map, imageObj *image, pointObj labelPnt, char *string, l
int needLabelPoint=MS_TRUE;
+ if(!string || !*string) {
+ return MS_SUCCESS;
+ }
initTextSymbol(&ts);
msPopulateTextSymbolForLabelAndString(&ts, label, string, scalefactor, image->resolutionfactor, 0);
if(UNLIKELY(MS_FAILURE == msComputeTextPath(map,&ts))) {

0 comments on commit 9ade01a

Please sign in to comment.