Fix latent bug in zone area calculation

The filled polygons don't have holes, so this was never hit,
but it still needs to be fixed.
This commit is contained in:
Ian McInerney 2020-04-14 17:32:47 +01:00
parent 4a2a5a9403
commit 7068b6453e
1 changed files with 1 additions and 1 deletions

View File

@ -1284,7 +1284,7 @@ double ZONE_CONTAINER::CalculateFilledArea()
{
m_area += m_FilledPolysList.Outline( i ).Area();
for( int j = 0; m_FilledPolysList.HoleCount( i ); j++ )
for( int j = 0; j < m_FilledPolysList.HoleCount( i ); j++ )
{
m_area -= m_FilledPolysList.Hole( i, j ).Area();
}