router: improve rounding error handling in hull calculation

This commit is contained in:
Tomasz Wlostowski 2015-07-02 16:09:29 +02:00 committed by Maciej Suminski
parent f96c65254c
commit e6dd016cb2
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
const SHAPE_LINE_CHAIN PNS_SOLID::Hull( int aClearance, int aWalkaroundThickness ) const
{
int cl = aClearance + aWalkaroundThickness / 2;
int cl = aClearance + (aWalkaroundThickness + 1)/ 2;
switch( m_shape->Type() )
{