this one should work
authorbuild <build@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 16 Feb 2007 16:37:33 +0000 (16:37 +0000)
committerbuild <build@41d37cc5-eb28-0410-a9bf-d37491348ade>
Fri, 16 Feb 2007 16:37:33 +0000 (16:37 +0000)
scripts/plc-map.py

index e4586b0..6ce7492 100755 (executable)
@@ -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)