diff --git a/GraphLayout/tools/WpfGraphControl/AutomaticGraphLayoutControl.xaml.cs b/GraphLayout/tools/WpfGraphControl/AutomaticGraphLayoutControl.xaml.cs index 0445d7a1..97a5dbaa 100644 --- a/GraphLayout/tools/WpfGraphControl/AutomaticGraphLayoutControl.xaml.cs +++ b/GraphLayout/tools/WpfGraphControl/AutomaticGraphLayoutControl.xaml.cs @@ -17,10 +17,6 @@ public Graph Graph { (d,e)=> ((AutomaticGraphLayoutControl)d)?.SetGraph())); private void SetGraph() { - if (Graph == null) { - dockPanel.Children.Clear(); - return; - } if (_graphViewer == null) { _graphViewer = new GraphViewer(); _graphViewer.BindToPanel(dockPanel);