mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-10 06:04:12 +02:00
053ff0b6cf
Symbols copied in old versions can share one uuid on a folio. Up to 0.100 that was harmless: a wire on a terminal without uuid was saved by terminal number. Since #1118 every terminal has a uuid, so every wire was saved by symbol uuid and terminal uuid, and on reopening findTerminal() took the first symbol carrying it: all the copies' wires landed on it. - Save: a wire end on a symbol whose uuid another symbol of the folio also carries is written by terminal number again. - Load: when a wire's uuid names several symbols, pickEnds() takes the pair whose distance matches the wire's saved path, then the symbols whose labels match the ones saved with the wire, then two terminals no wire joins yet; otherwise the first, as before. This repairs a file a build with #1118 saved once. tst_sharedsymboluuid gives the three lamps of Habitat-Schemas_developpes.qet one uuid: master loses a net after a save (8 of 9) and reopens the file it saved with 8; with this, 9 both times. The 25 examples save the same as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>