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

Stephan Arts stephan at xfce.org
Mon Jan 28 20:46:06 CET 2008


Author: stephan
Date: 2008-01-28 19:46:06 +0000 (Mon, 28 Jan 2008)
New Revision: 3898

Modified:
   ristretto/trunk/src/picture_viewer.c
Log:
Fix bug #3824


Modified: ristretto/trunk/src/picture_viewer.c
===================================================================
--- ristretto/trunk/src/picture_viewer.c	2008-01-27 22:24:07 UTC (rev 3897)
+++ ristretto/trunk/src/picture_viewer.c	2008-01-28 19:46:06 UTC (rev 3898)
@@ -760,6 +760,12 @@
 cb_rstto_picture_viewer_scroll_event (RsttoPictureViewer *viewer, GdkEventScroll *event)
 {
     RsttoNavigatorEntry *entry = rstto_navigator_get_file(viewer->priv->navigator);
+
+    if (entry == NULL)
+    {
+        return;
+    }
+
     gdouble scale = rstto_navigator_entry_get_scale(entry);
     viewer->priv->zoom_mode = RSTTO_ZOOM_MODE_CUSTOM;
     switch(event->direction)




More information about the Goodies-commits mailing list