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:
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user