[Xfce4-commits] <ristretto:stephan/gtk3> Fix segfault when image-quality property is changed

Stephan Arts noreply at xfce.org
Thu Aug 9 21:44:10 CEST 2012


Updating branch refs/heads/stephan/gtk3
         to 8c3ab2d2aefff1d859cdb07fbaeeec5f3ec2b2e5 (commit)
       from 1a7ec2adb967df1e393d6248ead33e81793c709d (commit)

commit 8c3ab2d2aefff1d859cdb07fbaeeec5f3ec2b2e5
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat May 5 08:45:33 2012 +0200

    Fix segfault when image-quality property is changed

 src/image_viewer.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c
index 58e66c4..8ef31ad 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -2794,10 +2794,13 @@ cb_rstto_limit_quality_changed (
     viewer->priv->limit_quality = g_value_get_boolean (
             &val_limit_quality);
 
-    rstto_image_viewer_load_image (
-            viewer,
-            viewer->priv->file,
-            viewer->priv->scale);
+    if ( NULL != viewer->priv->file )
+    {
+        rstto_image_viewer_load_image (
+                viewer,
+                viewer->priv->file,
+                viewer->priv->scale);
+    }
 }
 
 static void


More information about the Xfce4-commits mailing list