Skip to content

Commit

Permalink
#439: Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rds1983 committed Nov 29, 2023
1 parent 48de933 commit 14be929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Myra/Graphics2D/UI/Selectors/ListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public override void OnPressedChanged()
private class WidgetsEnumerator : IEnumerator<Widget>, IEnumerator
{
private readonly ListView _listView;
private int _index;
private int _index = -1;

public Widget Current => _listView.GetChildByIndex(_index);

Expand All @@ -116,7 +116,7 @@ public bool MoveNext()

public void Reset()
{
_index = 0;
_index = -1;
}
}

Expand Down

0 comments on commit 14be929

Please sign in to comment.