From 28b37ad0204260704b33cd6849af38a2954411b2 Mon Sep 17 00:00:00 2001 From: Steve Bollinger Date: Wed, 24 May 2023 17:02:45 -0700 Subject: [PATCH] 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 --- eeschema/tools/sch_drawing_tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index d873f5a5a5..887d02a0e0 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -868,11 +868,11 @@ int SCH_DRAWING_TOOLS::SingleClickPlace( const TOOL_EVENT& aEvent ) } else if( evt->IsAction( &EE_ACTIONS::mirrorV ) ) { - busItem->MirrorVertically( busItem->GetPosition().x ); + busItem->MirrorVertically( busItem->GetPosition().y ); } else if( evt->IsAction( &EE_ACTIONS::mirrorH ) ) { - busItem->MirrorHorizontally( busItem->GetPosition().y ); + busItem->MirrorHorizontally( busItem->GetPosition().x ); } m_view->ClearPreview();