Author: post
Date: 2012-05-06 15:48:55 +0200 (Sun, 06 May 2012)
New Revision: 4225

Modified:
   trunk/src/rs-navigator.c
Log:
If no image is returned to the navigator, don't attempt to draw it.

Modified: trunk/src/rs-navigator.c
===================================================================
--- trunk/src/rs-navigator.c    2012-05-06 13:48:29 UTC (rev 4224)
+++ trunk/src/rs-navigator.c    2012-05-06 13:48:55 UTC (rev 4225)
@@ -339,6 +339,13 @@
                RSFilterResponse *response = 
rs_filter_get_image8(navigator->cache, request);
                gdk_threads_enter();
                g_object_unref(request);
+
+               if (!response || !rs_filter_response_has_image8(response))
+               {
+                       if (response)
+                               g_object_unref(response);
+                       return;
+               }
                
                GdkPixbuf *pixbuf = rs_filter_response_get_image8(response);
                GdkRectangle placement, rect;


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to