mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Singles: fix error highlighting when grid is disconnected.
The loop that selects one of the disconnected regions (represented as equivalence classes in a dsf) to _not_ highlight as an error was failing to call dsf_canonify() to get the canonical element of the class. Instead, it was relying on having met the canonical element of the class first, because it iterates up the array in order, and in the old dsf implementation, canonical elements were always minimal ones. But the DSF refactoring made that untrue, so now we have to explicitly canonify each value we come to. Thanks to Steffen Bauer for the diagnosis and suggested fix.
This commit is contained in:
Reference in New Issue
Block a user