Enable Distribute H/V on pads.

Fixes: lp:1782988
* https://bugs.launchpad.net/kicad/+bug/1782988
This commit is contained in:
Jeff Young 2018-07-31 23:52:03 +01:00
parent 196bdc05db
commit 9175a48c90
1 changed files with 2 additions and 2 deletions

View File

@ -528,7 +528,7 @@ int ALIGN_DISTRIBUTE_TOOL::AlignCenterY( const TOOL_EVENT& aEvent )
int ALIGN_DISTRIBUTE_TOOL::DistributeHorizontally( const TOOL_EVENT& aEvent )
{
auto frame = getEditFrame<PCB_BASE_FRAME>();
SELECTION& selection = m_selectionTool->RequestSelection( SanitizePadsEnsureEditableFilter );
SELECTION& selection = m_selectionTool->RequestSelection( EnsureEditableFilter );
if( selection.Size() <= 1 )
return 0;
@ -614,7 +614,7 @@ void ALIGN_DISTRIBUTE_TOOL::doDistributeCentersHorizontally( ALIGNMENT_RECTS &it
int ALIGN_DISTRIBUTE_TOOL::DistributeVertically( const TOOL_EVENT& aEvent )
{
auto frame = getEditFrame<PCB_BASE_FRAME>();
SELECTION& selection = m_selectionTool->RequestSelection( SanitizePadsEnsureEditableFilter );
SELECTION& selection = m_selectionTool->RequestSelection( EnsureEditableFilter );
if( selection.Size() <= 1 )
return 0;