]> Creatis software - bbtk.git/commitdiff
2120 BBTK Bug New Normal Radios order in SphereList Box package vtk
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 27 Aug 2013 07:44:48 +0000 (09:44 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 27 Aug 2013 07:44:48 +0000 (09:44 +0200)
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