From ee9996bd3dbee44e7d5eb740816373955e865cad Mon Sep 17 00:00:00 2001 From: Trivalik <3148279+trivalik@users.noreply.github.com> Date: Tue, 7 Nov 2023 10:05:10 +0100 Subject: [PATCH] Remove not required assignment in CalculateLayerSizesAndPositions --- .../Hierarchical/SugiyamaLayoutAlgorithm.SliceAssignments.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GraphShape/Algorithms/Layout/Simple/Hierarchical/SugiyamaLayoutAlgorithm.SliceAssignments.cs b/src/GraphShape/Algorithms/Layout/Simple/Hierarchical/SugiyamaLayoutAlgorithm.SliceAssignments.cs index 276c43f..7cf66db 100644 --- a/src/GraphShape/Algorithms/Layout/Simple/Hierarchical/SugiyamaLayoutAlgorithm.SliceAssignments.cs +++ b/src/GraphShape/Algorithms/Layout/Simple/Hierarchical/SugiyamaLayoutAlgorithm.SliceAssignments.cs @@ -307,7 +307,6 @@ private void CalculateLayerSizesAndPositions() double layerDistance = Parameters.LayerGap; _layerPositions = new double[_layers.Count]; - _layerPositions[0] = 0; for (int i = 1; i < _layers.Count; ++i) { _layerPositions[i] = _layerPositions[i - 1] + _layerSizes[i - 1] + layerDistance; @@ -594,4 +593,4 @@ private void CalculateRealPositions() } } } -} \ No newline at end of file +}