Skip to content

Commit

Permalink
Check if sizeunits is not set to pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Sylve authored and jmckenna committed Jul 12, 2021
1 parent 39a4ead commit 3688004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maplegend.c
Expand Up @@ -191,7 +191,7 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
*/

/* Scalefactor will be infinity when SIZEUNITS is set in LAYER */
if(lp->scalefactor == INFINITY) {
if(lp->sizeunits != MS_PIXELS) {
lp->scalefactor = 1.0;
}

Expand Down

0 comments on commit 3688004

Please sign in to comment.