New pads in the module editor does not show up in the center of the edited module.
This commit is contained in:
parent
327f307a7f
commit
f32419f7e6
|
@ -137,7 +137,7 @@ int MODULE_TOOLS::PlacePad( TOOL_EVENT& aEvent )
|
||||||
preview.Add( pad );
|
preview.Add( pad );
|
||||||
m_view->Add( &preview );
|
m_view->Add( &preview );
|
||||||
|
|
||||||
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear );
|
m_toolMgr->RunAction( COMMON_ACTIONS::selectionClear, true );
|
||||||
m_controls->ShowCursor( true );
|
m_controls->ShowCursor( true );
|
||||||
m_controls->SetSnapping( true );
|
m_controls->SetSnapping( true );
|
||||||
|
|
||||||
|
@ -205,6 +205,7 @@ int MODULE_TOOLS::PlacePad( TOOL_EVENT& aEvent )
|
||||||
// Start placing next pad
|
// Start placing next pad
|
||||||
pad = new D_PAD( module );
|
pad = new D_PAD( module );
|
||||||
m_frame->Import_Pad_Settings( pad, false );
|
m_frame->Import_Pad_Settings( pad, false );
|
||||||
|
pad->SetPosition( wxPoint( cursorPos.x, cursorPos.y ) );
|
||||||
preview.Add( pad );
|
preview.Add( pad );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue