Skip to content

Commit bb76c29

Browse files
committed
Fixed issue with decoder on boundaries (45 to 60)
1 parent 2d8e47b commit bb76c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapcodelib/mapcoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ int master_decode( long *nx,long *ny, // <- store result in nx,ny
15701570
long minx,miny,maxx,maxy,xdiv8;
15711571
getboundaries((iso_end),minx,miny,maxx,maxy);
15721572
xdiv8 = x_divider(miny,maxy)/4; // should be /8 but there's some extra margin
1573-
if ( ! ( miny-45<=*ny && *ny<maxy+45 && isInRange(*nx,minx-xdiv8,maxx+xdiv8) ) ) // no fit?
1573+
if ( ! ( miny-60<=*ny && *ny<maxy+60 && isInRange(*nx,minx-xdiv8,maxx+xdiv8) ) ) // no fit?
15741574
{
15751575
err=-2222;
15761576
}

0 commit comments

Comments
 (0)