Don't clamp arc centers quite so aggressively.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16029
(cherry picked from commit 24ca7add42
)
This commit is contained in:
parent
81ba4fa9a6
commit
acd7d5ad2f
|
@ -478,13 +478,13 @@ const VECTOR2I CalcArcCenter( const VECTOR2I& aStart, const VECTOR2I& aMid, cons
|
|||
|
||||
VECTOR2I iCenter;
|
||||
|
||||
iCenter.x = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() / 2.0 ),
|
||||
iCenter.x = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() + 100 ),
|
||||
dCenter.x,
|
||||
double( std::numeric_limits<int>::max() / 2.0 ) ) );
|
||||
double( std::numeric_limits<int>::max() - 100 ) ) );
|
||||
|
||||
iCenter.y = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() / 2.0 ),
|
||||
iCenter.y = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() + 100 ),
|
||||
dCenter.y,
|
||||
double( std::numeric_limits<int>::max() / 2.0 ) ) );
|
||||
double( std::numeric_limits<int>::max() - 100 ) ) );
|
||||
|
||||
return iCenter;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue