From 9175a48c908217ad810bf8dca60df47cdf1ea391 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 31 Jul 2018 23:52:03 +0100 Subject: [PATCH] Enable Distribute H/V on pads. Fixes: lp:1782988 * https://bugs.launchpad.net/kicad/+bug/1782988 --- pcbnew/tools/placement_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/placement_tool.cpp b/pcbnew/tools/placement_tool.cpp index e08e05462c..08b0d3c13e 100644 --- a/pcbnew/tools/placement_tool.cpp +++ b/pcbnew/tools/placement_tool.cpp @@ -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(); - 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(); - SELECTION& selection = m_selectionTool->RequestSelection( SanitizePadsEnsureEditableFilter ); + SELECTION& selection = m_selectionTool->RequestSelection( EnsureEditableFilter ); if( selection.Size() <= 1 ) return 0;