Skip to content

Commit

Permalink
fix typo leading to segfault in some multi-label conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Sep 24, 2012
1 parent 2c93b6d commit 33b6073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapdraw.c
Expand Up @@ -3094,9 +3094,9 @@ int msDrawLabelCache(imageObj *image, mapObj *map)
} /* end POSITION AUTO vs Fixed POSITION */

if((!labelPtr->status || !label_marker_status) && classPtr->leader.maxdistance == 0) {
labelPtr->status = MS_OFF;
break; /* no point looking at more labels, unless their is a leader defined, in which
case we still want to compute the full cachePtr->poly to be used for offset tests */
labelPtr->status = MS_OFF;
} else {
if(!cachePtr->poly) {
cachePtr->poly = (shapeObj*)msSmallMalloc(sizeof(shapeObj));
Expand Down

0 comments on commit 33b6073

Please sign in to comment.