Skip to content

Commit

Permalink
Revert "fix: Add index range check in GridViewColumnLayout loop"
Browse files Browse the repository at this point in the history
This reverts commit 6ea458a.
  • Loading branch information
Stéphane ANDRE (E104915) committed Oct 10, 2024
1 parent 6ea458a commit 7fb6c4a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/MyNet.Wpf/Behaviors/ListViewLayoutBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ private void InitializeLayout(GridViewColumnCollection columns)
}
else
{
ColumnLayouts.OfType<GridViewColumnLayout>().ForEach((x, index) =>
{
if (index < columns.Count && index >= 0)
x.Column = columns[index];
});
ColumnLayouts.OfType<GridViewColumnLayout>().ForEach((x, index) => x.Column = columns[index]);

Refresh();
}
Expand Down

0 comments on commit 7fb6c4a

Please sign in to comment.