diff options
author | sr55 <[email protected]> | 2011-08-27 21:50:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-08-27 21:50:01 +0000 |
commit | 915363d852a04538d70e69b8efada8f6a7603e28 (patch) | |
tree | f8f31d501bca0651d1108bb4f5dd48348694d3ef /win/CS/HandBrake.ApplicationServices | |
parent | 3e32e57c216db0b6acf6166b9f23f2ede3aece30 (diff) |
WinGui: Broke the preset loader in the last commit. Now Fixed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4195 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs | 5 | ||||
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs index 31b46acdf..bcc07d55f 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs @@ -118,6 +118,11 @@ namespace HandBrake.ApplicationServices.Model public Cropping Cropping { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether HasCropping.
+ /// </summary>
+ public bool HasCropping { get; set; }
+
+ /// <summary>
/// Gets or sets Anamorphic.
/// </summary>
public Anamorphic Anamorphic { get; set; }
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs index a4d8d9787..99e673db9 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryParserUtility.cs @@ -175,9 +175,12 @@ namespace HandBrake.ApplicationServices.Utilities int.Parse(actCropValues[1]),
int.Parse(actCropValues[2]),
int.Parse(actCropValues[3]));
+ parsed.HasCropping = true;
}
catch (Exception)
{
+ parsed.Cropping = null;
+ parsed.HasCropping = false;
// No need to do anything.
}
}
|