From 119ead12de2e589145293a5340afdff9ff4d2061 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 24 Sep 2005 22:16:07 +0000 Subject: [PATCH] fix for graphs/bars not showing when using max_width git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@330 7f574dfc-610e-0410-a909-a81674777703 --- ChangeLog | 3 +++ src/conky.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4d7c46a5..13d9e387 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # $Id$ +2005-09-24 + * Fixed bug where graphs/bars don't show when maximum_width is enabled + 2005-09-15 * Fixed right-alignment bug thanks to Pascal Eberhard * Applied patch 1291420 from sf.net diff --git a/src/conky.c b/src/conky.c index 6048ece7..e00c2f28 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3531,7 +3531,7 @@ static void draw_line(char *s) case BAR: { - if (cur_x - maximum_width - text_start_x && maximum_width > 0) { + if (cur_x - text_start_x > maximum_width && maximum_width > 0) { break; } int h = @@ -3587,7 +3587,7 @@ static void draw_line(char *s) case GRAPH: { - if (cur_x - maximum_width - text_start_x && maximum_width > 0) { + if (cur_x - text_start_x > maximum_width && maximum_width > 0) { break; } int h =