eechema: add junction if needed when component is placed

Fixes: lp:1849376
* https://bugs.launchpad.net/kicad/+bug/1849376
This commit is contained in:
Franck Jullien 2019-11-26 22:03:19 +01:00 committed by Seth Hillbrand
parent ac09c9c9d4
commit a5f8340654
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ int SCH_DRAWING_TOOLS::PlaceComponent( const TOOL_EVENT& aEvent )
m_view->ClearPreview();
m_frame->AddItemToScreenAndUndoList( component );
m_toolMgr->RunAction( EE_ACTIONS::addNeededJunctions, true, component );
m_frame->OnModify();
if( m_frame->GetUseAllUnits() || m_frame->GetRepeatComponent() )
{
int new_unit = component->GetUnit();