Skip to content

Commit

Permalink
fix scaledependant rendering of label styles (#4015)
Browse files Browse the repository at this point in the history
use the scalefactor determined by the label size
for label backgrounds cc/ @havatv

closes #4015
  • Loading branch information
tbonfort committed Apr 12, 2012
1 parent 3d95372 commit 11f46f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3088,7 +3088,7 @@ int msDrawLabelCache(imageObj *image, mapObj *map)
if(labelPtr->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOINT)
msDrawMarkerSymbol(&map->symbolset, image, &(cachePtr->point), labelPtr->styles[i], layerPtr->scalefactor);
else if(labelPtr->styles[i]->_geomtransform.type == MS_GEOMTRANSFORM_LABELPOLY) {
msDrawShadeSymbol(&map->symbolset, image, labelPtr->annopoly, labelPtr->styles[i], layerPtr->scalefactor);
msDrawShadeSymbol(&map->symbolset, image, labelPtr->annopoly, labelPtr->styles[i], scalefactor);
} else {
msSetError(MS_MISCERR,"Labels only support LABELPNT and LABELPOLY GEOMTRANSFORMS", "msDrawLabelCAche()");
return MS_FAILURE;
Expand Down

0 comments on commit 11f46f1

Please sign in to comment.