]> granicus.if.org Git - handbrake/commitdiff
WinGui: When we are dealing with Automatic anaorphic, we also need to pre-set the...
authorsr55 <sr55.hb@outlook.com>
Sun, 6 Nov 2016 21:08:39 +0000 (21:08 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 6 Nov 2016 21:08:39 +0000 (21:08 +0000)
win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs

index a6f8586cb645ab2a095adc53302a7de4203d97f2..e44c0d9d167b723c26303747b934493aba2fd0ae 100644 (file)
@@ -785,6 +785,9 @@ namespace HandBrakeWPF.ViewModels
                     else\r
                     {\r
                         this.Task.Width = preset.Task.Width ?? this.MaxWidth;\r
+\r
+                        int cropHeight = this.Task.Cropping.Top + this.Task.Cropping.Bottom;\r
+                        this.Task.Height = (preset.Task.Height ?? this.MaxHeight) - cropHeight;\r
                     }\r
 \r
                     // If our height is too large, let it downscale the width for us by setting the height to the lower value.\r