diff options
author | sr55 <[email protected]> | 2013-04-21 14:28:52 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2013-04-21 14:28:52 +0000 |
commit | 76d311c9aa5e4e6b58dfd1d570d275caf44051c4 (patch) | |
tree | 34f7b8b67bd9eba5bd3427777a29fd3f47357181 /win/CS/HandBrake.ApplicationServices/Factories | |
parent | 6a3f1580b2988575fbd63b49ff26d714f7d449e3 (diff) |
WinGui: Added some additional sanity checking around preset import/export code.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5405 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Factories')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs index 9179f3887..6e738351a 100644 --- a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs +++ b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs @@ -127,10 +127,10 @@ namespace HandBrake.ApplicationServices.Factories preset.Task.Cropping.Right = kvp.Value;
break;
case "PictureHeight":
- preset.Task.Height = kvp.Value;
+ preset.Task.Height = kvp.Value == null || kvp.Value == 0 ? null : kvp.Value;
break;
case "PictureWidth":
- preset.Task.Width = kvp.Value;
+ preset.Task.Width = kvp.Value == null || kvp.Value == 0 ? null : kvp.Value;
break;
case "PictureKeepRatio":
preset.Task.KeepDisplayAspect = kvp.Value == 1;
|