Bug 681799 - Canvas size doesn't show preview after canceling once

gimp_viewable_get_pixbuf(): if there is a cached pixbuf of the right
size, actually return it, instead of the local "pixbuf" variable which
is always NULL.
This commit is contained in:
Michael Natterer 2012-08-14 09:23:16 +02:00
parent d5dfd414b3
commit 276b507285
1 changed files with 1 additions and 1 deletions

View File

@ -881,7 +881,7 @@ gimp_viewable_get_pixbuf (GimpViewable *viewable,
if (gdk_pixbuf_get_width (private->preview_pixbuf) == width &&
gdk_pixbuf_get_height (private->preview_pixbuf) == height)
{
return pixbuf;
return private->preview_pixbuf;
}
g_object_unref (private->preview_pixbuf);