mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Fix cash in gen video
This commit is contained in:
parent
6f475f7d1f
commit
777ca3d8c9
@ -108,7 +108,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
if (videoInfo != null && videoInfo.Success && videoInfo.TotalSeconds > 0)
|
||||
{
|
||||
numericUpDownDurationMinutes.Value = (decimal)(videoInfo.TotalSeconds / 60.0);
|
||||
var target = (decimal)(videoInfo.TotalSeconds / 60.0);
|
||||
if (target >= numericUpDownDurationMinutes.Minimum &&
|
||||
target <= numericUpDownDurationMinutes.Maximum)
|
||||
{
|
||||
numericUpDownDurationMinutes.Value = target;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user