From b735f57fa4fa7a3c596da0dbd3c14b6bae063421 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 4 May 2016 14:06:10 +0200 Subject: [PATCH] Refresh pads after enumeration in Footprint Editor. --- pcbnew/tools/module_tools.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/module_tools.cpp b/pcbnew/tools/module_tools.cpp index 3a5d9a3508..2c34d83d14 100644 --- a/pcbnew/tools/module_tools.cpp +++ b/pcbnew/tools/module_tools.cpp @@ -311,7 +311,10 @@ int MODULE_TOOLS::EnumeratePads( const TOOL_EVENT& aEvent ) m_frame->SaveCopyInUndoList( m_board->m_Modules, UR_MODEDIT ); BOOST_FOREACH( D_PAD* pad, pads ) + { pad->SetPadName( wxString::Format( wxT( "%s%d" ), padPrefix.c_str(), padNumber++ ) ); + pad->ViewUpdate(); + } break; }