Skip to content

Commit

Permalink
Merge pull request #379 from DHancock/dev
Browse files Browse the repository at this point in the history
Add an assert
  • Loading branch information
DHancock authored Aug 16, 2024
2 parents f6c86b9 + ae65cfe commit 22be952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SudokuSolver/Views/PuzzleView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public void FocusLastSelectedCell()
{
if (lastSelectedCell is not null)
{
bool focused = lastSelectedCell.Focus(FocusState.Programmatic);
Debug.WriteLine($"FocusLastSelectedCell success = {focused}");
Debug.Assert(lastSelectedCell.Parent is not null);
lastSelectedCell.Focus(FocusState.Programmatic);
}
}

Expand Down

0 comments on commit 22be952

Please sign in to comment.