diff options
author | sr55 <[email protected]> | 2012-03-24 21:31:49 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-24 21:31:49 +0000 |
commit | 654057c737c7b51f236bdc6f5100f24f3fc4f8be (patch) | |
tree | c3c42ba0c649bab1a3a393b7fcbb460b3352e5e6 /win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs | |
parent | 71be55c4db11cd6e2f8ba2f2df25e030fa089644 (diff) |
WinGui: (WPF) Port the Advanced Panel for x264 from VidCoder.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4536 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs index 81e12ddc8..31da7ed74 100644 --- a/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs +++ b/win/CS/HandBrakeWPF/Converters/BooleanToVisibilityConverter.cs @@ -42,6 +42,11 @@ namespace HandBrakeWPF.Converters // Paramater is a boolean which inverts the output.
var param = System.Convert.ToBoolean(parameter, CultureInfo.InvariantCulture);
+ if (value == null)
+ {
+ return Visibility.Collapsed;
+ }
+
if (value is Boolean)
{
if (param)
|