Set the maximum end time seen correctly in select-overlaps

This commit is contained in:
Thomas Goyne 2013-05-01 21:20:49 -07:00
parent b2f5a993d9
commit ffb8c29ca2
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ select_overlaps = function(subs)
for _index_0 = 1, #_list_0 do
local line = _list_0[_index_0]
if line.start_time >= end_time then
end_time = line.start_time
end_time = line.end_time
else
table.insert(overlaps, line.i)
end

View file

@ -33,7 +33,7 @@ select_overlaps = (subs) ->
overlaps = {}
for line in *dialogue
if line.start_time >= end_time
end_time = line.start_time
end_time = line.end_time
else
table.insert overlaps, line.i
overlaps