From aa0e398cf75c6fa4824ea1d58d0ee01fc0eafe9e Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Fri, 5 Apr 2002 02:49:58 +0000 Subject: [PATCH] Fixed a small oversight in the previous bug fix. in GeoSet::computeBound() _numcoords is NOT necesarily _cindex._size. --- src/osg/GeoSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/GeoSet.cpp b/src/osg/GeoSet.cpp index 749d32ee9..e8e1335a4 100644 --- a/src/osg/GeoSet.cpp +++ b/src/osg/GeoSet.cpp @@ -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]]);