Tweaks
svn: r14143
This commit is contained in:
parent
294f59bb7b
commit
07decce138
@ -691,8 +691,7 @@ class ListView(NavigationView):
|
|||||||
_LOG.debug(' ' + self.__class__.__name__ + ' row_update ' +
|
_LOG.debug(' ' + self.__class__.__name__ + ' row_update ' +
|
||||||
str(time.clock() - cput) + ' sec')
|
str(time.clock() - cput) + ' sec')
|
||||||
# Ensure row is still selected after a change of postion in tree.
|
# Ensure row is still selected after a change of postion in tree.
|
||||||
if not self.selected_handles():
|
if handle_list and not self.selected_handles():
|
||||||
if len(handle_list) > 0:
|
|
||||||
self.goto_handle(handle_list[-1])
|
self.goto_handle(handle_list[-1])
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.dirty = True
|
||||||
|
@ -838,7 +838,7 @@ class StatisticsChart(Report):
|
|||||||
pad = row_h * 0.5
|
pad = row_h * 0.5
|
||||||
|
|
||||||
# check maximum value
|
# check maximum value
|
||||||
max_value = reduce(max, map(data.get, lookup), 0)
|
max_value = max(data[k] for k in lookup) if data else 0
|
||||||
# horizontal area for the gfx bars
|
# horizontal area for the gfx bars
|
||||||
margin = 1.0
|
margin = 1.0
|
||||||
middle = width/2.0
|
middle = width/2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user