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

Stephan Arts stephan at xfce.org
Mon Nov 24 22:39:14 CET 2008


Author: stephan
Date: 2008-11-24 21:39:14 +0000 (Mon, 24 Nov 2008)
New Revision: 6198

Modified:
   ristretto/trunk/src/navigator.c
Log:
Fix bug #4599
Fixed based on patches by Jannis Pohlman and Pavol Rusnak



Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2008-11-24 21:37:08 UTC (rev 6197)
+++ ristretto/trunk/src/navigator.c	2008-11-24 21:39:14 UTC (rev 6198)
@@ -797,6 +797,7 @@
 rstto_navigator_entry_new (RsttoNavigator *navigator, ThunarVfsInfo *info)
 {
     RsttoNavigatorEntry *entry = NULL;
+    ExifEntry *exifentry = NULL;
     gchar *filename = thunar_vfs_path_dup_string(info->path);
     if(filename)
     {
@@ -813,7 +814,9 @@
             entry->navigator = navigator;
             entry->animation = NULL;
             
-            ExifEntry *exifentry = exif_data_get_entry(entry->exif_data, EXIF_TAG_ORIENTATION);
+            if (entry->exif_data) {
+                exifentry = exif_data_get_entry(entry->exif_data, EXIF_TAG_ORIENTATION);
+            }
             if (exifentry)
             {
                 gchar *val = g_new0(gchar, 20);




More information about the Goodies-commits mailing list