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:
parent
4a2a5a9403
commit
7068b6453e
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue