1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 09:44:04 +00:00

Fix $execbar et al.

This commit is contained in:
Pavel Labath 2010-01-07 22:27:25 +01:00
parent dc55c7d0a9
commit ca9ebd9504

View File

@ -491,17 +491,11 @@ static void new_bar_in_x11(struct text_object *obj, char *buf, int usage)
struct special_t *s = 0; struct special_t *s = 0;
struct bar *b = obj->special_data; struct bar *b = obj->special_data;
if ((output_methods & TO_X) == 0)
return;
if (!b)
return;
s = new_special(buf, BAR); s = new_special(buf, BAR);
s->arg = usage; s->arg = usage;
s->width = b->width; s->width = b ? b->width : default_bar_width;
s->height = b->height; s->height = b ? b->height : default_bar_height;
} }
#endif /* X11 */ #endif /* X11 */