[mapcode] 08/18: Fixed issue with decoder on boundaries (45 to 60)

Stefan Fritsch sf at moszumanska.debian.org
Wed Nov 2 23:27:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to annotated tag v1.40
in repository mapcode.

commit bb76c29eb09c92b16f8f8a61abad078e67f2d9a7
Author: Rijn Buve <rijn at buve.nl>
Date:   Thu Sep 18 16:45:51 2014 +0200

    Fixed issue with decoder on boundaries (45 to 60)
---
 mapcodelib/mapcoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mapcodelib/mapcoder.c b/mapcodelib/mapcoder.c
index 3e9735e..e77eed2 100644
--- a/mapcodelib/mapcoder.c
+++ b/mapcodelib/mapcoder.c
@@ -1570,7 +1570,7 @@ int master_decode(  long *nx,long *ny, // <- store result in nx,ny
       long minx,miny,maxx,maxy,xdiv8;
       getboundaries((iso_end),minx,miny,maxx,maxy);
       xdiv8 = x_divider(miny,maxy)/4; // should be /8 but there's some extra margin
-      if ( ! ( miny-45<=*ny && *ny<maxy+45 && isInRange(*nx,minx-xdiv8,maxx+xdiv8) ) ) // no fit?
+      if ( ! ( miny-60<=*ny && *ny<maxy+60 && isInRange(*nx,minx-xdiv8,maxx+xdiv8) ) ) // no fit?
       {
 			  err=-2222;
       }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git



More information about the Pkg-grass-devel mailing list