[gimp] Bug 681799 - Canvas size doesn't show preview after canceling once
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 681799 - Canvas size doesn't show preview after canceling once
- Date: Tue, 14 Aug 2012 07:29:31 +0000 (UTC)
commit 276b5072855de5e57fb4a83cfdb0e628eee2a473
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 14 09:23:16 2012 +0200
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.
app/core/gimpviewable.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpviewable.c b/app/core/gimpviewable.c
index 89df190..005a83b 100644
--- a/app/core/gimpviewable.c
+++ b/app/core/gimpviewable.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]