Someone accidentally exchanged the x and y coordinates when flipping

components horizontally and vertically in
SCH_DRAWING_TOOLS::SingleClickPlace()

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14725
This commit is contained in:
Steve Bollinger 2023-05-24 17:02:45 -07:00 committed by Ian McInerney
parent 1282e00775
commit 28b37ad020
1 changed files with 2 additions and 2 deletions

View File

@ -868,11 +868,11 @@ int SCH_DRAWING_TOOLS::SingleClickPlace( const TOOL_EVENT& aEvent )
} }
else if( evt->IsAction( &EE_ACTIONS::mirrorV ) ) else if( evt->IsAction( &EE_ACTIONS::mirrorV ) )
{ {
busItem->MirrorVertically( busItem->GetPosition().x ); busItem->MirrorVertically( busItem->GetPosition().y );
} }
else if( evt->IsAction( &EE_ACTIONS::mirrorH ) ) else if( evt->IsAction( &EE_ACTIONS::mirrorH ) )
{ {
busItem->MirrorHorizontally( busItem->GetPosition().y ); busItem->MirrorHorizontally( busItem->GetPosition().x );
} }
m_view->ClearPreview(); m_view->ClearPreview();