diff options
Diffstat (limited to 'pixelmappers/SimpleMapper.py')
-rw-r--r-- | pixelmappers/SimpleMapper.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pixelmappers/SimpleMapper.py b/pixelmappers/SimpleMapper.py index 31a48cc..396eca3 100644 --- a/pixelmappers/SimpleMapper.py +++ b/pixelmappers/SimpleMapper.py @@ -13,7 +13,10 @@ class SimpleMapper(PixelMapper): if pixelDist < bestDist: bestPixel = pixel bestDist = pixelDist - return [(bestPixel,1)] + if bestPixel != None: + return [(bestPixel,1)] + else: + return [] else: #{x}>5,{y}<k #TODO: we should probably encapsulate this somewhere |