From 34cfc2fd407fe5b0bf80604ea8a831c1e3e10710 Mon Sep 17 00:00:00 2001 From: panthernet Date: Sun, 21 May 2017 13:38:30 +0200 Subject: [PATCH] Fix --- Examples/SimpleGraph/MainWindow.xaml.cs | 2 +- .../LayoutAlgorithms/Tree/SimpleTreeLayoutAlgorithm.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/SimpleGraph/MainWindow.xaml.cs b/Examples/SimpleGraph/MainWindow.xaml.cs index b949ffc..86457a7 100644 --- a/Examples/SimpleGraph/MainWindow.xaml.cs +++ b/Examples/SimpleGraph/MainWindow.xaml.cs @@ -85,7 +85,7 @@ namespace SimpleGraph //This method sets edges arrows visibility. It is also applied to all edges in Area.EdgesList. You can also set property for //each edge individually using property, for ex: Area.EdgesList[0].ShowArrows = true; - Area.ShowAllEdgesArrows(true); + Area.ShowAllEdgesArrows(false); //This method sets edges labels visibility. It is also applied to all edges in Area.EdgesList. You can also set property for //each edge individually using property, for ex: Area.EdgesList[0].ShowLabel = true; diff --git a/GraphX.PCL.Logic/Algorithms/LayoutAlgorithms/Tree/SimpleTreeLayoutAlgorithm.cs b/GraphX.PCL.Logic/Algorithms/LayoutAlgorithms/Tree/SimpleTreeLayoutAlgorithm.cs index da88c33..97fb8b4 100644 --- a/GraphX.PCL.Logic/Algorithms/LayoutAlgorithms/Tree/SimpleTreeLayoutAlgorithm.cs +++ b/GraphX.PCL.Logic/Algorithms/LayoutAlgorithms/Tree/SimpleTreeLayoutAlgorithm.cs @@ -24,7 +24,7 @@ namespace GraphX.PCL.Logic.Algorithms.LayoutAlgorithms public SimpleTreeLayoutAlgorithm( TGraph visitedGraph, IDictionary vertexPositions, IDictionary vertexSizes, SimpleTreeLayoutParameters parameters ) : base( visitedGraph, vertexPositions, parameters ) { - VertexSizes = new Dictionary(vertexSizes); + VertexSizes = VertexSizes == null ? new Dictionary() : new Dictionary(vertexSizes); } public override void Compute(CancellationToken cancellationToken)