From 92ded4966b70c31e74fd763bff02dff7d6630be7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 16 Jun 2015 18:56:57 +0000 Subject: WinGui: Fix an issue with the json preset factory not correctly setting the auto-crop flag. Minor UI alignment issue fixed on the Picture tab. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7300 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/Services/Presets/Factories') diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs index 580e275ce..89fd93921 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs @@ -61,7 +61,7 @@ namespace HandBrakeWPF.Services.Presets.Factories preset.Task.MaxWidth = importedPreset.PictureWidth.HasValue && importedPreset.PictureWidth.Value > 0 ? importedPreset.PictureWidth.Value : (int?)null; preset.Task.MaxHeight = importedPreset.PictureHeight.HasValue && importedPreset.PictureHeight.Value > 0 ? importedPreset.PictureHeight.Value : (int?)null; preset.Task.Cropping = new Cropping(importedPreset.PictureTopCrop, importedPreset.PictureBottomCrop, importedPreset.PictureLeftCrop, importedPreset.PictureRightCrop); - preset.Task.HasCropping = importedPreset.PictureAutoCrop; + preset.Task.HasCropping = !importedPreset.PictureAutoCrop; preset.Task.Modulus = importedPreset.PictureModulus; preset.Task.KeepDisplayAspect = importedPreset.PictureKeepRatio; -- cgit v1.2.3