From 0a10eed5a3e5c7deb5363646667fd20c2ca6e5b8 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Wed, 25 Jul 2012 22:18:54 +0000 Subject: [PATCH] Fix thumbnailing when the thumbnail is a crop of an image svn: r20079 --- src/gui/thumbnails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/thumbnails.py b/src/gui/thumbnails.py index c70f7775e..7c6fb4c91 100644 --- a/src/gui/thumbnails.py +++ b/src/gui/thumbnails.py @@ -196,7 +196,7 @@ def __create_thumbnail_image(src_file, mtype=None, rectangle=None, sub_width = int((lower_x - upper_x) * width) sub_height = int((lower_y - upper_y) * height) if sub_width > 0 and sub_height > 0: - pixbuf = pixbuf.subpixbuf(sub_x, sub_y, sub_width, sub_height) + pixbuf = pixbuf.new_subpixbuf(sub_x, sub_y, sub_width, sub_height) width = sub_width height = sub_height