[Goodies-commits] r3031 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Tue Aug 21 23:51:26 CEST 2007


Author: stephan
Date: 2007-08-21 21:51:26 +0000 (Tue, 21 Aug 2007)
New Revision: 3031

Modified:
   ristretto/trunk/src/picture_viewer.c
Log:
fixed possible bug

Modified: ristretto/trunk/src/picture_viewer.c
===================================================================
--- ristretto/trunk/src/picture_viewer.c	2007-08-21 21:36:06 UTC (rev 3030)
+++ ristretto/trunk/src/picture_viewer.c	2007-08-21 21:51:26 UTC (rev 3031)
@@ -522,10 +522,13 @@
                 g_object_unref(viewer->priv->dst_pixbuf);
                 viewer->priv->dst_pixbuf = NULL;
             }
-            viewer->priv->dst_pixbuf = gdk_pixbuf_scale_simple(tmp_pixbuf, gdk_pixbuf_get_width(tmp_pixbuf)*viewer->priv->scale, gdk_pixbuf_get_height(tmp_pixbuf)*viewer->priv->scale, GDK_INTERP_BILINEAR);
 
             if(tmp_pixbuf)
             {
+                viewer->priv->dst_pixbuf = gdk_pixbuf_scale_simple(tmp_pixbuf, 
+                                                     gdk_pixbuf_get_width(tmp_pixbuf) * viewer->priv->scale, 
+                                                     gdk_pixbuf_get_height(tmp_pixbuf) * viewer->priv->scale,
+                                                     GDK_INTERP_BILINEAR);
                 g_object_unref(tmp_pixbuf);
                 tmp_pixbuf = NULL;
             }




More information about the Goodies-commits mailing list