X-Git-Url: https://scm.cri.mines-paristech.fr/git/Photo.git/blobdiff_plain/a18ca54d896fa2f98cf2b7fb8955120ff5e0aa37..c753491076de81cc53bb84b08d83262faaf27bba:/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+')