[Goodies-dev] [Bug 9083] If no bars are shown, 1.0.{3, 4} will segfault on start

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Jul 4 13:56:04 CEST 2012


https://bugzilla.xfce.org/show_bug.cgi?id=9083

--- Comment #1 from jjacky <i.am.jack.mail at gmail.com> ---
alright well, for some reason I can't seem to add an attachment, but it's a
very small fix anyhow:

--- panel-plugin/cpu.c.old    2012-07-04 13:34:12.605588007 +0200
+++ panel-plugin/cpu.c    2012-07-04 13:34:41.905586986 +0200
@@ -517,7 +517,7 @@ void set_color( CPUGraph *base, guint nu
         gtk_widget_modify_bg( base->draw_area, GTK_STATE_INSENSITIVE,
&base->colors[0] );
         gtk_widget_modify_bg( base->draw_area, GTK_STATE_NORMAL,
&base->colors[0] );
     }
-    if( number == 4 )
+    if( number == 4 && base->has_bars )
     {
         n = nb_bars( base );

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the Goodies-dev mailing list