mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 12:44:46 +01:00
Merge pull request #1828 from ivandrofly/importtext-2
[ImportText ] - Update/Refact
This commit is contained in:
commit
50be7c7705
@ -122,14 +122,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
|
||||
if (_refreshTimer.Enabled)
|
||||
{
|
||||
_refreshTimer.Stop();
|
||||
_refreshTimer.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
_refreshTimer.Start();
|
||||
}
|
||||
_refreshTimer.Start();
|
||||
}
|
||||
|
||||
private void GeneratePreviewReal()
|
||||
@ -260,8 +254,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
p.EndTime.TotalMilliseconds = millisecondsIndex + p.Duration.TotalMilliseconds;
|
||||
p.StartTime.TotalMilliseconds = millisecondsIndex;
|
||||
|
||||
millisecondsIndex += p.Duration.TotalMilliseconds + millisecondsInterval;
|
||||
millisecondsIndex += (p.EndTime.TotalMilliseconds - p.StartTime.TotalMilliseconds) + millisecondsInterval;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user