Simplify function

This commit is contained in:
René Stadler 2007-11-20 12:33:47 +02:00 committed by Stefan Sauer
parent 8747ab3a6e
commit a511073ea2

View file

@ -434,9 +434,7 @@ class TimelineFeature (FeatureBase):
data = self.timeline.sentinel.data
if not data:
return True
count = 0
for i in range (pos):
count += data[i]
count = sum (data[:pos + 1])
row = self.log_model[count]
self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5)