Fix a bug causing lower segment count on holes when deflating polygons.

This commit is contained in:
Alex Shvartzkop 2023-10-06 00:26:33 +03:00
parent 163fd5021e
commit 2cd630b47d
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ void SHAPE_POLY_SET::inflate2( int aAmount, int aCircleSegCount, CORNER_STRATEGY
void SHAPE_POLY_SET::Inflate( int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError,
bool aSimplify )
{
int segCount = GetArcToSegmentCount( aAmount, aMaxError, FULL_CIRCLE );
int segCount = GetArcToSegmentCount( std::abs( aAmount ), aMaxError, FULL_CIRCLE );
if( ADVANCED_CFG::GetCfg().m_UseClipper2 )
inflate2( aAmount, segCount, aCornerStrategy, aSimplify );