Browse Source

Removed null-check, this removed warning that value can never be null.

pull/660/head
gumme 11 years ago
parent
commit
5c1c0ff062
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/OutlineView/OutlineNodeBase.cs

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/OutlineView/OutlineNodeBase.cs

@ -38,7 +38,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
} }
catch (Exception) catch (Exception)
{ } { }
if (hidden != null && (bool)hidden) { if (hidden) {
_isDesignTimeVisible = false; _isDesignTimeVisible = false;
((FrameworkElement)DesignItem.Component).Visibility = Visibility.Hidden; ((FrameworkElement)DesignItem.Component).Visibility = Visibility.Hidden;
} }
@ -50,7 +50,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
} }
catch (Exception) catch (Exception)
{ } { }
if (locked != null && (bool)locked) { if (locked) {
_isDesignTimeLocked = true; _isDesignTimeLocked = true;
} }

Loading…
Cancel
Save