Bug fix in ImageView.get_wanted_image_size.
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 21 Jan 2006 17:35:47 +0000 (17:35 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 21 Jan 2006 17:35:47 +0000 (17:35 +0000)
src/packages/kofoto/gkofoto/imageview.py

index 8dc0ca9..50995a7 100644 (file)
@@ -142,7 +142,11 @@ class ImageView(gtk.ScrolledWindow):
         set_image.
         """
 
-        return tuple(self._calculate_wanted_image_size())
+        size = self._calculate_wanted_image_size()
+        if size is None:
+            return None
+        else:
+            return tuple(size)
 
     def get_zoom_level(self):
         """Get current zoom level."""