Trying to fix load of translation pair with time offset - thx darnn :)

Related to #3928
This commit is contained in:
Nikolaj Olsson 2020-01-20 08:28:32 +01:00
parent a5ba19496f
commit dc8329ef2b

View File

@ -2080,7 +2080,16 @@ namespace Nikse.SubtitleEdit.Forms
{ {
_subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs)); _subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
_changeSubtitleHash = _subtitle.GetFastHashCode(GetCurrentEncoding().BodyName); _changeSubtitleHash = _subtitle.GetFastHashCode(GetCurrentEncoding().BodyName);
SubtitleListview1.Fill(_subtitle); if (_subtitleAlternate != null && _subtitleAlternate.Paragraphs.Count > 0)
{
_subtitleAlternate.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
_changeAlternateSubtitleHash = _subtitleAlternate.GetFastHashCode(GetCurrentEncoding().BodyName);
SubtitleListview1.Fill(_subtitle, _subtitleAlternate);
}
else
{
SubtitleListview1.Fill(_subtitle);
}
} }
GotoSubPosAndPause(); GotoSubPosAndPause();