Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 38e86d5087d118e061f2afaf8b00aa40 > files > 2

gpicview-0.2.5-4.git20210304.3.mga9.src.rpm

--- gpicview-0.2.4/src/image-view.c~	2013-10-23 10:42:02.000000000 +0200
+++ gpicview-0.2.4/src/image-view.c	2016-04-15 09:47:54.313139987 +0200
@@ -343,15 +343,12 @@
 
 void image_view_set_pixbuf( ImageView* iv, GdkPixbuf* pixbuf )
 {
-    if( pixbuf != iv->pix )
-    {
         image_view_clear( iv );
         if( G_LIKELY(pixbuf) )
             iv->pix = (GdkPixbuf*)g_object_ref( pixbuf );
         calc_image_area( iv );
         gtk_widget_queue_resize( (GtkWidget*)iv );
 //        gtk_widget_queue_draw( (GtkWidget*)iv);
-    }
 }
 
 void image_view_set_scale( ImageView* iv, gdouble new_scale, GdkInterpType type )