Have the "make adjacent" threshold in TPP have the end of the range be inclusive

Originally committed to SVN as r5912.
This commit is contained in:
Thomas Goyne 2011-11-25 19:28:50 +00:00
parent 56e6f7d5b2
commit 0c5cb8e490

View file

@ -420,7 +420,7 @@ void DialogTimingProcessor::Process() {
int curStart = cur->Start.GetMS();
int prevEnd = prev->End.GetMS();
int dist = curStart-prevEnd;
if (dist > 0 && dist < adjsThres) {
if (dist > 0 && dist <= adjsThres) {
int setPos = prevEnd+int(dist*bias);
cur->Start.SetMS(setPos);
prev->End.SetMS(setPos);