Fix misplaced parenthesis in VECTOR2<T>::Resize()
Fixes https://gitlab.com/kicad/code/kicad/issues/7045
This commit is contained in:
parent
ece0a5ec8e
commit
00a9910149
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue