diff --git a/pcbnew/tools/placement_tool.cpp b/pcbnew/tools/placement_tool.cpp index 9b798dbc01..18ea6ddf32 100644 --- a/pcbnew/tools/placement_tool.cpp +++ b/pcbnew/tools/placement_tool.cpp @@ -244,7 +244,7 @@ int ALIGN_DISTRIBUTE_TOOL::AlignBottom( const TOOL_EVENT& aEvent ) if( !GetSelections( itemsToAlign, locked_items, []( const ALIGNMENT_RECT left, const ALIGNMENT_RECT right) { - return ( left.second.GetBottom() < right.second.GetBottom() ); + return ( left.second.GetBottom() > right.second.GetBottom() ); } ) ) { return 0; @@ -364,7 +364,7 @@ int ALIGN_DISTRIBUTE_TOOL::doAlignRight() if( !GetSelections( itemsToAlign, locked_items, []( const ALIGNMENT_RECT left, const ALIGNMENT_RECT right) { - return ( left.second.GetRight() < right.second.GetRight() ); + return ( left.second.GetRight() > right.second.GetRight() ); } ) ) { return 0;