From 8c0da67108965673b0cd2e997f7979e7a0a9499b Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 1 Jan 2022 14:38:44 -0500 Subject: [PATCH] Fix accidentally introduced recursion --- libs/kimath/src/bezier_curves.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/kimath/src/bezier_curves.cpp b/libs/kimath/src/bezier_curves.cpp index aa3f892a72..3fd1fad8fe 100644 --- a/libs/kimath/src/bezier_curves.cpp +++ b/libs/kimath/src/bezier_curves.cpp @@ -74,7 +74,7 @@ BEZIER_POLY::BEZIER_POLY( const std::vector& aControlPoints ) void BEZIER_POLY::GetPoly( std::vector& aOutput, int aMinSegLen, int aMaxSegCount ) { aOutput.clear(); - std::vector buffer; + std::vector buffer; GetPoly( buffer, double( aMinSegLen ), aMaxSegCount ); for( unsigned ii = 0; ii < buffer.size(); ++ii ) @@ -88,7 +88,7 @@ void BEZIER_POLY::GetPoly( std::vector& aOutput, double aMinSegLen, in // FIXME Brute force method, use a better (recursive?) algorithm // with a max error value. // to optimize the number of segments - double dt = 1.0 / aMaxSegCount; + double dt = 1.0 / aMaxSegCount; aOutput.clear(); aOutput.push_back( m_ctrlPts[0] );