X-Git-Url: https://svn.cri.ensmp.fr/git/Photo.git/blobdiff_plain/a18ca54d896fa2f98cf2b7fb8955120ff5e0aa37..fe8318f18ce2d36c45ed6ba5315e8a80a527fb39:/TileSupport.py?ds=sidebyside diff --git a/TileSupport.py b/TileSupport.py index 905b0f4..5b777cc 100644 --- a/TileSupport.py +++ b/TileSupport.py @@ -19,8 +19,8 @@ ####################################################################################### """ Tile support module -$Id: TileSupport.py 1371 2009-09-10 17:58:28Z pin $ -$URL: http://svn.luxia.fr/svn/labo/projects/zope/Photo/trunk/TileSupport.py $ + + """ from AccessControl import ClassSecurityInfo @@ -92,7 +92,7 @@ class TileSupport : f = bf.open('r') orientation = self.tiffOrientation() - rotation, flip = TIFF_ORIENTATIONS[orientation] + rotation, flip = TIFF_ORIENTATIONS.get(orientation, (0, False)) if rotation and flip : tf = TemporaryFile(mode='w+')