Fix "Extend with gap" not considering gap for original

This commit is contained in:
OmrSi 2020-09-09 18:40:28 +03:00
parent ba1efae692
commit b7f703f272

View File

@ -15130,7 +15130,15 @@ namespace Nikse.SubtitleEdit.Forms
historyAdded = true;
}
original.EndTime.TotalMilliseconds = Math.Min(nearestSceneChange * 1000, nearestOriginalStartTimeWithGap);
if (!withGap)
{
original.EndTime.TotalMilliseconds = Math.Min(nearestSceneChange * 1000, nearestOriginalStartTimeWithGap);
}
else
{
original.EndTime.TotalMilliseconds = Math.Min(nearestSceneChange * 1000 - Configuration.Settings.General.MinimumMillisecondsBetweenLines, nearestStartTimeWithGap);
}
}
}
}