Replace stale pin references with UNDO copy

When we replace a symbol with one that has fewer pins, the old pins
are released, which leaves points to them in the connection graph
dangling.  This updates the pointer to use the cloned copy in the undo
stack until the connection graph is rebuilt with the new data

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17851
This commit is contained in:
Seth Hillbrand
2024-04-24 12:55:02 -07:00
parent 5f81e01f43
commit 315ad0e071
5 changed files with 115 additions and 6 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ public:
///< before the modification.
COMMIT& Modified( EDA_ITEM* aItem, EDA_ITEM* aCopy, BASE_SCREEN *aScreen = nullptr )
{
return createModified( aItem, aCopy );
return createModified( aItem, aCopy, 0, aScreen );
}
template<class Range>