Skip to content

Commit 2f3e195

Browse files
committed
Fix label rendering from mapscript with labelcache disabled (#5239)
1 parent 6c13c20 commit 2f3e195

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mapdraw.c

+5
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,11 @@ int msDrawPoint(mapObj *map, layerObj *layer, pointObj *point, imageObj *image,
20562056
return(MS_FAILURE);
20572057
}
20582058
} else {
2059+
if(UNLIKELY(MS_FAILURE == msComputeTextPath(map,ts))) {
2060+
freeTextSymbol(ts);
2061+
free(ts);
2062+
return MS_FAILURE;
2063+
}
20592064
ret = msDrawTextSymbol(map,image,*point,ts);
20602065
freeTextSymbol(ts);
20612066
free(ts);

0 commit comments

Comments
 (0)