mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-29 14:14:15 +02:00
22f1455868
Review of the previous commit: "Import scaled element" and "Import DXF" add a definition to an open symbol through OpenElmtCommand, which, unlike a paste, kept the imported terminals' uuids. With derived uuids, an old symbol imported into itself (or into another with a terminal at the same point) gave two terminals one uuid; importing any symbol whose terminals already carried uuids did the same before this series. OpenElmtCommand now renews the imported terminals' uuids, as PastePartsCommand does. Checked in the editor with a stand-in scaler at scale 1: open 6es7_212-1ae40-0xb0__p3.elmt, import it into itself, save -- 6 terminals, 3 distinct uuids without this commit, 6 with it, the original 3 keeping their derived values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>