From cec0a956bdb3aa972dea7d1f781cf93f33c638be Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sat, 11 Apr 2015 23:41:22 +0200 Subject: [PATCH] bugfix: pcbnew segfaults after adding footprint directly from editor --- pcbnew/tools/module_tools.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/pcbnew/tools/module_tools.cpp b/pcbnew/tools/module_tools.cpp index 1d32d17b8b..0d602c455c 100644 --- a/pcbnew/tools/module_tools.cpp +++ b/pcbnew/tools/module_tools.cpp @@ -146,8 +146,6 @@ int MODULE_TOOLS::PlacePad( const TOOL_EVENT& aEvent ) module->SetLastEditTime(); module->Pads().PushBack( pad ); - pad->SetNetCode( NETINFO_LIST::UNCONNECTED ); - // Set the relative pad position // ( pad position for module orient, 0, and relative to the module position) pad->SetLocalCoord();