]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSphereList.cxx
2120 BBTK Bug New Normal Radios order in SphereList Box package vtk
[bbtk.git] / packages / vtk / src / bbvtkSphereList.cxx
index 40fce8f425c2e9d2353c481491b8d0f272c77c62..4932d83cc9766d9f24ceba115775c784059dd81c 100644 (file)
@@ -41,10 +41,10 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SphereList,bbtk::AtomicBlackBox);
 double SphereList::GetRadio(int i)
 {
     double radio;
-       if (bbGetInputlstRadio().size()==0)
+       if ( bbGetInputlstRadio().size()==0 )
         {
             radio = 1.0;
-        } else if (bbGetInputlstRadio().size() < i )
+        } else if ( i<bbGetInputlstRadio().size() )
        {
             radio = bbGetInputlstRadio()[i];
         } else