From: sr55 Date: Sun, 6 Nov 2016 21:08:39 +0000 (+0000) Subject: WinGui: When we are dealing with Automatic anaorphic, we also need to pre-set the... X-Git-Tag: 1.0.0~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad33345c36dfc5a0cad766f80c74ae3f4cb0d711;p=handbrake WinGui: When we are dealing with Automatic anaorphic, we also need to pre-set the Height now when loading the source. --- diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index a6f8586cb..e44c0d9d1 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -785,6 +785,9 @@ namespace HandBrakeWPF.ViewModels else { this.Task.Width = preset.Task.Width ?? this.MaxWidth; + + int cropHeight = this.Task.Cropping.Top + this.Task.Cropping.Bottom; + this.Task.Height = (preset.Task.Height ?? this.MaxHeight) - cropHeight; } // If our height is too large, let it downscale the width for us by setting the height to the lower value.