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

Stephan Arts stephan at xfce.org
Sun Aug 12 01:04:31 CEST 2007


Author: stephan
Date: 2007-08-11 23:04:31 +0000 (Sat, 11 Aug 2007)
New Revision: 2987

Modified:
   ristretto/trunk/src/navigator.c
Log:
changed rotate check

Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2007-08-11 22:57:49 UTC (rev 2986)
+++ ristretto/trunk/src/navigator.c	2007-08-11 23:04:31 UTC (rev 2987)
@@ -530,6 +530,7 @@
 void
 rstto_navigator_set_file (RsttoNavigator *navigator, gint n)
 {
+    GdkPixbuf *new_pixbuf;
     navigator->file_iter = g_list_nth(navigator->file_list, n);
     if(navigator->file_iter)
     {
@@ -539,11 +540,14 @@
         if(pixbuf)
         {
             RsttoNavigatorEntry *entry = navigator->file_iter->data;
-            GdkPixbuf *new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
-            if(new_pixbuf)
+            if (entry->rotation)
             {
-                g_object_unref(pixbuf);
-                pixbuf = new_pixbuf;
+                new_pixbuf = gdk_pixbuf_rotate_simple(pixbuf, entry->rotation);
+                if(new_pixbuf)
+                {
+                    g_object_unref(pixbuf);
+                    pixbuf = new_pixbuf;
+                }
             }
             if(entry->v_flipped)
             {




More information about the Goodies-commits mailing list