Skip to content

Commit 3688004

Browse files
Patrik Sylvejmckenna
Patrik Sylve
authored andcommitted
Check if sizeunits is not set to pixels
1 parent 39a4ead commit 3688004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maplegend.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int msDrawLegendIcon(mapObj *map, layerObj *lp, classObj *theclass,
191191
*/
192192

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

0 commit comments

Comments
 (0)