diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-10-24 18:52:12 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-10-24 18:54:26 +0100 |
| commit | 35f796542ee5d7e775643f526973aa75f483bf20 (patch) | |
| tree | 421354d9f38a73c6f4fa0697356cc7180403863b /webpage.pl | |
| parent | 2d9e414ee316b37143954150016e8f4f18358497 (diff) | |
| download | puzzles-35f796542ee5d7e775643f526973aa75f483bf20.zip puzzles-35f796542ee5d7e775643f526973aa75f483bf20.tar.gz puzzles-35f796542ee5d7e775643f526973aa75f483bf20.tar.bz2 puzzles-35f796542ee5d7e775643f526973aa75f483bf20.tar.xz | |
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.
Diffstat (limited to 'webpage.pl')
0 files changed, 0 insertions, 0 deletions