Fix for font size bug mentioned in #8210 - thx amir3dsmax :)

This commit is contained in:
Nikolaj Olsson 2024-05-04 10:42:29 +02:00
parent f9700dea68
commit 56c14d4b17

View File

@ -28,7 +28,7 @@ namespace Nikse.SubtitleEdit.Forms
private long _startTicks;
private long _totalFrames;
private StringBuilder _log;
private readonly bool _isAssa;
private bool _isAssa;
private FfmpegMediaInfo _mediaInfo;
private bool _promptFFmpegParameters;
private readonly bool _mpvOn;
@ -472,6 +472,8 @@ namespace Nikse.SubtitleEdit.Forms
if (!string.IsNullOrEmpty(videoAndSub.SubtitleFileName) & File.Exists(videoAndSub.SubtitleFileName))
{
subtitle = Subtitle.Parse(videoAndSub.SubtitleFileName);
_isAssa = videoAndSub.SubtitleFileName.EndsWith(".ass", StringComparison.OrdinalIgnoreCase) ||
videoAndSub.SubtitleFileName.EndsWith(".assa", StringComparison.OrdinalIgnoreCase);
}
var path = Path.GetDirectoryName(videoAndSub.VideoFileName);