Commit cfcc470
committed
Fix test_multiline_tool failing with PyQt6 due to smaller canvas size
The spiral test data started at t=0, placing the first two points so
close together that they mapped to the same pixel on PyQt6's smaller
default canvas (297x382 vs 355x383 with PyQt5). This triggered
stop_moving's init_pos == pos check, deleting a point and causing an
off-by-one assertion error (99 vs 100 points).
Start the spiral at t=2π to ensure sufficient pixel spacing between
consecutive points regardless of canvas size.1 parent cc18c85 commit cfcc470
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments