mirror of https://github.com/GNOME/gimp.git
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:
parent
d5dfd414b3
commit
276b507285
app/core
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue