[gimp/metadata-browser] Bug 681799 - Canvas size doesn't show preview after canceling once



commit 5107d5a44b61a663bf0fcfd64d182d045373382f
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]