bugfix: pcbnew segfaults after adding footprint directly from editor

This commit is contained in:
Maciej Suminski 2015-04-11 23:41:22 +02:00
parent 3fc45fb74f
commit cec0a956bd
1 changed files with 0 additions and 2 deletions

View File

@ -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();