From 55fafe3401456f0957c0d348cb4070a2ebffe1fc Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 26 Aug 2024 19:37:23 +0200 Subject: [PATCH] Fix incorrect flip for graphic segments. For some obscure reason, the end points of segments were swapped. Note graphic RECTANGLE shapes have still an issue when flipped, but this is a very different issue. From master branch --- common/eda_shape.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/eda_shape.cpp b/common/eda_shape.cpp index 30bf54ba3f..f565c22062 100644 --- a/common/eda_shape.cpp +++ b/common/eda_shape.cpp @@ -401,8 +401,6 @@ void EDA_SHAPE::flip( const VECTOR2I& aCentre, bool aFlipLeftRight ) m_start.y = aCentre.y - ( m_start.y - aCentre.y ); m_end.y = aCentre.y - ( m_end.y - aCentre.y ); } - - std::swap( m_start, m_end ); break; case SHAPE_T::CIRCLE: