summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-12-15 21:13:06 +0000
committersr55 <[email protected]>2017-12-15 21:13:55 +0000
commit5922dd68fcec189e3ffc33ea5a01d3b848636535 (patch)
tree77b56ea05493848bc4d0b5f3dee9868a9e12f4fe /win/CS/HandBrakeWPF/ViewModels
parent8035d11b896fd1b70bfb1b8aeda5068aab7bb59c (diff)
WinGui: Reset crop settings when switching back to Automatic.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs8
1 files changed, 8 insertions, 0 deletions
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;
+ }
}
}