Skip to content

Commit 9ade01a

Browse files
committed
Fix handling of non-labelcached empty labels (#5241)
closes #5241
1 parent 5a83df5 commit 9ade01a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mapdraw.c

+3
Original file line numberDiff line numberDiff line change
@@ -2089,6 +2089,9 @@ int msDrawLabel(mapObj *map, imageObj *image, pointObj labelPnt, char *string, l
20892089
int needLabelPoint=MS_TRUE;
20902090

20912091

2092+
if(!string || !*string) {
2093+
return MS_SUCCESS;
2094+
}
20922095
initTextSymbol(&ts);
20932096
msPopulateTextSymbolForLabelAndString(&ts, label, string, scalefactor, image->resolutionfactor, 0);
20942097
if(UNLIKELY(MS_FAILURE == msComputeTextPath(map,&ts))) {

0 commit comments

Comments
 (0)