Fixed a small oversight in the previous bug fix. in GeoSet::computeBound()

_numcoords is NOT necesarily _cindex._size.
This commit is contained in:
Don BURNS
2002-04-05 02:49:58 +00:00
parent 87b7f48453
commit aa0e398cf7

View File

@@ -434,7 +434,7 @@ const bool GeoSet::computeBound() const
{
if( _cindex.valid() )
{
for( i = 0; i < _numcoords; i++ )
for( i = 0; i < int(_cindex._size); i++ )
{
center += _coords[_cindex[i]];
_bbox.expandBy(_coords[_cindex[i]]);