diff --git a/libs/kimath/src/trigo.cpp b/libs/kimath/src/trigo.cpp index b9c40ba087..574c896d80 100644 --- a/libs/kimath/src/trigo.cpp +++ b/libs/kimath/src/trigo.cpp @@ -478,13 +478,13 @@ const VECTOR2I CalcArcCenter( const VECTOR2I& aStart, const VECTOR2I& aMid, cons VECTOR2I iCenter; - iCenter.x = KiROUND( Clamp( double( std::numeric_limits::min() / 2.0 ), + iCenter.x = KiROUND( Clamp( double( std::numeric_limits::min() + 100 ), dCenter.x, - double( std::numeric_limits::max() / 2.0 ) ) ); + double( std::numeric_limits::max() - 100 ) ) ); - iCenter.y = KiROUND( Clamp( double( std::numeric_limits::min() / 2.0 ), + iCenter.y = KiROUND( Clamp( double( std::numeric_limits::min() + 100 ), dCenter.y, - double( std::numeric_limits::max() / 2.0 ) ) ); + double( std::numeric_limits::max() - 100 ) ) ); return iCenter; }