fix for graphs/bars not showing when using max_width
authorBrenden Matthews <brenden1@rty.ca>
Sat, 24 Sep 2005 22:16:07 +0000 (22:16 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Sat, 24 Sep 2005 22:16:07 +0000 (22:16 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@330 7f574dfc-610e-0410-a909-a81674777703

ChangeLog
src/conky.c

index 4d7c46a..13d9e38 100644 (file)
--- 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
index 6048ece..e00c2f2 100644 (file)
@@ -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 =