mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
eb2367e400
With "one text per potential" on, the number is drawn on the potential's longest conductor. When two conductors tie for longest, longestConductorInPotential() kept whichever it met first, iterating a QSet<Conductor *> in pointer order -- which changes from run to run. The same file, exported twice, could put the number on either conductor: same numbers, different PDF. A tie is now broken by where the conductors' ends are on the folio, then by uuid. Not by uuid first: a file with no conductor uuids gets fresh ones on every load, and a project generated again by a script gets new ones each time, while the drawing is the same. tst_potentialtextcarrier exports a fixture with such a tie eight times; before the fix it failed in each of three tries. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>