From 7bcbd9d4532b7745e0c56850459feecccdaf03dd Mon Sep 17 00:00:00 2001 From: build Date: Fri, 16 Feb 2007 16:37:33 +0000 Subject: [PATCH] this one should work --- scripts/plc-map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/plc-map.py b/scripts/plc-map.py index e4586b0..6ce7492 100755 --- a/scripts/plc-map.py +++ b/scripts/plc-map.py @@ -44,7 +44,7 @@ def main (): if site['longitude'] is not None and site['latitude'] is not None: px=float(longitude['left']-site['longitude'])/float(longitude['left']-longitude['right']) py=float(latitude['top']-site['latitude'])/float(latitude['top']-latitude['bottom']) - if (px==0 or py==0 or px==1 or py==1): + if (px<0 or py<0 or px>1 or py>1): continue circle(image,px,py,sx,sy,cIn,cOut) -- 2.47.0