diff options
author | Mattias Andrée <maandree@kth.se> | 2016-09-30 01:48:32 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-09-30 01:48:32 +0200 |
commit | 34b92da96d15ae3160133b10a7bc989aafaad92b (patch) | |
tree | e0e19b7e52c09cf2e9c35ac3ea033071ec394fd9 /src/__main__.py | |
parent | mem: add .keys (diff) | |
download | xpybar-34b92da96d15ae3160133b10a7bc989aafaad92b.tar.gz xpybar-34b92da96d15ae3160133b10a7bc989aafaad92b.tar.bz2 xpybar-34b92da96d15ae3160133b10a7bc989aafaad92b.tar.xz |
Fix drawing bug in Bar.partial_clear
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-x | src/__main__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py index 6bce7a3..8abfa45 100755 --- a/src/__main__.py +++ b/src/__main__.py @@ -408,7 +408,7 @@ class Bar: for part in parts: w = Bar.coloured_length(part) * self.font_width x_ = int((width - w) * i / n) - if w > 0: + if w >= 0: areas_.append((x_, x_ + w)) i += 1 x1 = areas_[0][1] |