Commit cec0a956 authored by Maciej Suminski's avatar Maciej Suminski

bugfix: pcbnew segfaults after adding footprint directly from editor

parent 3fc45fb7
...@@ -146,8 +146,6 @@ int MODULE_TOOLS::PlacePad( const TOOL_EVENT& aEvent ) ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment