mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Trying to fix load of translation pair with time offset - thx darnn :)
Related to #3928
This commit is contained in:
parent
a5ba19496f
commit
dc8329ef2b
@ -2080,8 +2080,17 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
_subtitle.AddTimeToAllParagraphs(TimeSpan.FromMilliseconds(-Configuration.Settings.General.CurrentVideoOffsetInMs));
|
||||
_changeSubtitleHash = _subtitle.GetFastHashCode(GetCurrentEncoding().BodyName);
|
||||
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();
|
||||
SubtitleListview1.EndUpdate();
|
||||
|
Loading…
Reference in New Issue
Block a user