Skip to content

Commit

Permalink
Merge pull request #88 from hkoof/fix-bargraph-hlines
Browse files Browse the repository at this point in the history
fix hlines in BarGraph.set_data(): sort descending
  • Loading branch information
wardi committed Apr 21, 2015
2 parents d2104c0 + 6406f24 commit f824164
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions urwid/graphics.py
Expand Up @@ -304,6 +304,7 @@ def set_data(self, bardata, top, hlines=None):
if hlines is not None:
hlines = hlines[:] # shallow copy
hlines.sort()
hlines.reverse()
self.data = bardata, top, hlines
self._invalidate()

Expand Down

0 comments on commit f824164

Please sign in to comment.