From 34b92da96d15ae3160133b10a7bc989aafaad92b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 30 Sep 2016 01:48:32 +0200 Subject: Fix drawing bug in Bar.partial_clear MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/__main__.py') 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] -- cgit v1.2.3-70-g09d2