From 00a9910149548539afc5aca691c3dd7f926b53cd Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Sat, 16 Jan 2021 10:30:39 +0100 Subject: [PATCH] Fix misplaced parenthesis in VECTOR2::Resize() Fixes https://gitlab.com/kicad/code/kicad/issues/7045 --- libs/kimath/include/math/vector2d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/kimath/include/math/vector2d.h b/libs/kimath/include/math/vector2d.h index 645a9838d1..010eed8247 100644 --- a/libs/kimath/include/math/vector2d.h +++ b/libs/kimath/include/math/vector2d.h @@ -422,8 +422,8 @@ VECTOR2 VECTOR2::Resize( T aNewLength ) const ( x < 0 ? -1 : 1 ) * KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) x * x, l_sq_current ) ) ), ( y < 0 ? -1 : 1 ) * - KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) - * sign( aNewLength ) ); + KiROUND( std::sqrt( rescale( l_sq_new, (extended_type) y * y, l_sq_current ) ) ) ) + * sign( aNewLength ); } else {