microsoft / microsoft/PowerToys
[Screen Ruler] FindEdge skips pixel at row/column 0
Open
Beginner friendly
Nobody has claimed this yet.
Issue-Bug
Product-Screen Ruler
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
Bug
In EdgeDetection.cpp, if (--x == 0) break; exits without reading pixel[0]. Edge detection reports wrong boundary at column 0.
Found by AI test review fleet
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in EdgeDetection.cpp at FindEdge and inspect the decrement-and-break condition described in the issue. Trace how the pixel boundary is detected, then add or update coverage for row and column 0. Done means edge detection reports the correct boundary without skipping pixel[0].
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100