]> granicus.if.org Git - handbrake/commitdiff
WinGui: Reset crop settings when switching back to Automatic.
authorsr55 <sr55.hb@outlook.com>
Fri, 15 Dec 2017 21:13:06 +0000 (21:13 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 15 Dec 2017 21:13:55 +0000 (21:13 +0000)
win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs

index e9557967323680f0364363142889456dae0e840c..828ddfe19c9219508964079ecfb7aae18d4a7ed7 100644 (file)
@@ -426,6 +426,14 @@ namespace HandBrakeWPF.ViewModels
             {\r
                 this.Task.HasCropping = value;\r
                 this.NotifyOfPropertyChange(() => this.IsCustomCrop);\r
+\r
+                if (!value && this.currentTitle != null)\r
+                {\r
+                    this.CropTop = currentTitle.AutoCropDimensions.Top;\r
+                    this.CropBottom = currentTitle.AutoCropDimensions.Bottom;\r
+                    this.CropLeft = currentTitle.AutoCropDimensions.Left;\r
+                    this.CropRight = currentTitle.AutoCropDimensions.Right;\r
+                }\r
             }\r
         }\r
 \r