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 data = self.timeline.sentinel.data
if not data: if not data:
return True return True
count = 0 count = sum (data[:pos + 1])
for i in range (pos):
count += data[i]
row = self.log_model[count] row = self.log_model[count]
self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5) self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5)