Skip to content

Commit

Permalink
Make label expressions consistent with class expressions by allowing …
Browse files Browse the repository at this point in the history
…them to work off an item (labelitem).
  • Loading branch information
sdlime committed Nov 3, 2013
1 parent d4b3dbb commit a93fa60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maputil.c
Expand Up @@ -692,7 +692,7 @@ int msGetLabelStatus(mapObj *map, layerObj *layer, shapeObj *shape, labelObj *lb
assert(layer && lbl);
if(!msScaleInBounds(map->scaledenom,lbl->minscaledenom,lbl->maxscaledenom))
return MS_OFF;
if(msEvalExpression(layer, shape, &(lbl->expression), -1) != MS_TRUE)
if(msEvalExpression(layer, shape, &(lbl->expression), layer->labelitemindex) != MS_TRUE)
return MS_OFF;
/* TODO: check for minfeaturesize here ? */
return MS_ON;
Expand Down

0 comments on commit a93fa60

Please sign in to comment.