summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-11-06 21:08:39 +0000
committersr55 <[email protected]>2016-11-06 21:08:39 +0000
commitad33345c36dfc5a0cad766f80c74ae3f4cb0d711 (patch)
tree89be6000b35f3c615ae2e981564e4bbab2f66aed
parent856e195a7e9730f7aa9af8dcb9baa24e4045f712 (diff)
WinGui: When we are dealing with Automatic anaorphic, we also need to pre-set the Height now when loading the source.
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs3
1 files changed, 3 insertions, 0 deletions
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.