bugfix: pcbnew segfaults after adding footprint directly from editor
This commit is contained in:
parent
3fc45fb74f
commit
cec0a956bd
|
@ -146,8 +146,6 @@ int MODULE_TOOLS::PlacePad( const TOOL_EVENT& aEvent )
|
||||||
module->SetLastEditTime();
|
module->SetLastEditTime();
|
||||||
module->Pads().PushBack( pad );
|
module->Pads().PushBack( pad );
|
||||||
|
|
||||||
pad->SetNetCode( NETINFO_LIST::UNCONNECTED );
|
|
||||||
|
|
||||||
// Set the relative pad position
|
// Set the relative pad position
|
||||||
// ( pad position for module orient, 0, and relative to the module position)
|
// ( pad position for module orient, 0, and relative to the module position)
|
||||||
pad->SetLocalCoord();
|
pad->SetLocalCoord();
|
||||||
|
|
Loading…
Reference in New Issue