diff --git a/BonVision/CreateVertexGrid.cs b/BonVision/CreateVertexGrid.cs index 6ca7691..a6f7dcf 100644 --- a/BonVision/CreateVertexGrid.cs +++ b/BonVision/CreateVertexGrid.cs @@ -17,7 +17,7 @@ public IObservable Process(IObservable source) return source.ToArray().Select(value => { // The number of rows in the grid is equal to the number of distinct values of 'v' - var rows = value.Select(row => row[3]).Distinct().Count(); + var rows = value.Select(row => row[2]).Distinct().Count(); var cols = value.Length / rows; var i = 0;