GNOME Bugzilla – Bug 735426
Red fixed number remains red after board is cleared
Last modified: 2014-09-05 14:07:45 UTC
Created attachment 284470 [details] saved game Load the attached game (by copying it into ~/.local/share/gnome-sudoku) with Show Warnings on. There should be a bunch of red numbers. Now click Clear Board. The 2 remains red, even though there are no more numbers left to conflict with it.
Created attachment 284471 [details] screenshot
Created attachment 284573 [details] [review] Clear all redmarks when the board is cleared. I can reproduce with your savefile but not with other plays. But that doesn’t matter, here’s the one-line patch I suggest.
Review of attachment 284573 [details] [review]: ::: src/gnome-sudoku.vala @@ +321,3 @@ { view.clear (); + game.board.broken_coords.clear (); It'd be better if you add this to SudokuGame's reset() instead. Let's have all the reset related libsudoku operations at one place :-)
Created attachment 285446 [details] [review] Clear all redmarks when the board is cleared.
Attachment 285446 [details] pushed as d4f60e6 - Clear all redmarks when the board is cleared.