mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
2ed85f6fc7
Addresses scorpio810's review of PR #890 (bugtracker #734): - The four cas "3"/"4" bridge-skip guards now compare qRound()ed coordinates, matching how the bridge coordinate itself is computed -- an exact != would miss a pair already grid-equal after rounding but off by a sub-pixel remainder, and still route a degenerate bridge for it. Verified no behavior change on the shipped corpus: per-file self-retrace counts are identical before/after (every coordinate there already lands exactly on-grid). - Added tests/qttest/tst_conductorselfretrace.cpp, fixture qet_bug_repro_resaved.qet (the report's own canonical reproduction): exports it via the built binary's --export-svg and asserts no conductor path is self-retracing. Confirmed it actually catches the regression, not just passes vacuously -- reverted conductor.cpp to master and reran: fails, 1 self-retracing path found. Not changed in code: the cas "4" descending-branch dead-code note (kept for symmetry, as already agreed) and the schema_unifilaire_voltaique2.qet trade-off (flagged for the reviewer's own visual check). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>