forked from mia/Aegisub
Set the maximum end time seen correctly in select-overlaps
This commit is contained in:
parent
b2f5a993d9
commit
ffb8c29ca2
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ select_overlaps = function(subs)
|
||||||
for _index_0 = 1, #_list_0 do
|
for _index_0 = 1, #_list_0 do
|
||||||
local line = _list_0[_index_0]
|
local line = _list_0[_index_0]
|
||||||
if line.start_time >= end_time then
|
if line.start_time >= end_time then
|
||||||
end_time = line.start_time
|
end_time = line.end_time
|
||||||
else
|
else
|
||||||
table.insert(overlaps, line.i)
|
table.insert(overlaps, line.i)
|
||||||
end
|
end
|
||||||
|
|
|
@ -33,7 +33,7 @@ select_overlaps = (subs) ->
|
||||||
overlaps = {}
|
overlaps = {}
|
||||||
for line in *dialogue
|
for line in *dialogue
|
||||||
if line.start_time >= end_time
|
if line.start_time >= end_time
|
||||||
end_time = line.start_time
|
end_time = line.end_time
|
||||||
else
|
else
|
||||||
table.insert overlaps, line.i
|
table.insert overlaps, line.i
|
||||||
overlaps
|
overlaps
|
||||||
|
|
Loading…
Reference in a new issue