Update of /cvsroot/ufraw/ufraw
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv2959

Modified Files:
        ufraw_preview.c 
Log Message:
Only update histograms if they are expanded, fixing ufraw bug #299.


Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.363
retrieving revision 1.364
diff -u -d -r1.363 -r1.364
--- ufraw_preview.c     10 Mar 2013 18:45:11 -0000      1.363
+++ ufraw_preview.c     24 Mar 2013 06:10:27 -0000      1.364
@@ -3899,14 +3899,16 @@
         GdkPixbuf *pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(data->RawHisto));
         rawHisHeight = data->RawHisto->allocation.height;
         if (pixbuf == NULL || gdk_pixbuf_get_height(pixbuf) != rawHisHeight)
-            gdk_threads_add_idle_full(G_PRIORITY_DEFAULT_IDLE,
-                                      (GSourceFunc)(render_raw_histogram), 
data, NULL);
+            if (rawExpanded)
+                gdk_threads_add_idle_full(G_PRIORITY_DEFAULT_IDLE,
+                            (GSourceFunc)(render_raw_histogram), data, NULL);
 
         pixbuf = gtk_image_get_pixbuf(GTK_IMAGE(data->LiveHisto));
         liveHisHeight = data->LiveHisto->allocation.height;
         if (pixbuf == NULL || gdk_pixbuf_get_height(pixbuf) != liveHisHeight)
-            gdk_threads_add_idle_full(G_PRIORITY_DEFAULT_IDLE,
-                                      (GSourceFunc)(render_live_histogram), 
data, NULL);
+            if (liveExpanded)
+                gdk_threads_add_idle_full(G_PRIORITY_DEFAULT_IDLE,
+                            (GSourceFunc)(render_live_histogram), data, NULL);
     }
 }
 


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to