From 5922dd68fcec189e3ffc33ea5a01d3b848636535 Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 15 Dec 2017 21:13:06 +0000 Subject: WinGui: Reset crop settings when switching back to Automatic. --- win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index e95579673..828ddfe19 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -426,6 +426,14 @@ namespace HandBrakeWPF.ViewModels { this.Task.HasCropping = value; this.NotifyOfPropertyChange(() => this.IsCustomCrop); + + if (!value && this.currentTitle != null) + { + this.CropTop = currentTitle.AutoCropDimensions.Top; + this.CropBottom = currentTitle.AutoCropDimensions.Bottom; + this.CropLeft = currentTitle.AutoCropDimensions.Left; + this.CropRight = currentTitle.AutoCropDimensions.Right; + } } } -- cgit v1.2.3