Fix misplaced parenthesis in VECTOR2<T>::Resize()

Fixes https://gitlab.com/kicad/code/kicad/issues/7045
This commit is contained in:
Mikolaj Wielgus 2021-01-16 10:30:39 +01:00 committed by Mikołaj Wielgus
parent ece0a5ec8e
commit 00a9910149
1 changed files with 2 additions and 2 deletions

View File

@ -422,8 +422,8 @@ VECTOR2<T> VECTOR2<T>::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
{