From ad33345c36dfc5a0cad766f80c74ae3f4cb0d711 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 6 Nov 2016 21:08:39 +0000 Subject: [PATCH] WinGui: When we are dealing with Automatic anaorphic, we also need to pre-set the Height now when loading the source. --- win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.40.0