diff --git a/qa/common/geometry/test_shape_poly_set_distance.cpp b/qa/common/geometry/test_shape_poly_set_distance.cpp index 2a29e13659..5b47802bb7 100644 --- a/qa/common/geometry/test_shape_poly_set_distance.cpp +++ b/qa/common/geometry/test_shape_poly_set_distance.cpp @@ -140,7 +140,7 @@ BOOST_AUTO_TEST_CASE( SegDistance ) { SHAPE_POLY_SET polyset = c.m_polyset; - int dist = sqrt( polyset.SquaredDistance( c.m_seg ) ) - c.m_seg_width; + int dist = sqrt( polyset.SquaredDistance( c.m_seg ) ) - ( c.m_seg_width / 2 ); // right answer? BOOST_CHECK_PREDICATE( KI_TEST::IsWithin, ( dist )( c.m_exp_dist )( 1 ) );