Browse Source

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

pull/660/head
gumme 10 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 @@ -38,7 +38,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
}
catch (Exception)
{ }
if (hidden != null && (bool)hidden) {
if (hidden) {
_isDesignTimeVisible = false;
((FrameworkElement)DesignItem.Component).Visibility = Visibility.Hidden;
}
@ -50,7 +50,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView @@ -50,7 +50,7 @@ namespace ICSharpCode.WpfDesign.Designer.OutlineView
}
catch (Exception)
{ }
if (locked != null && (bool)locked) {
if (locked) {
_isDesignTimeLocked = true;
}

Loading…
Cancel
Save