]> Creatis software - bbtk.git/commitdiff
Clean code vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 17 Mar 2026 11:57:54 +0000 (12:57 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 17 Mar 2026 11:57:54 +0000 (12:57 +0100)
packages/std/src/bbstdVectorFilterDouble.cxx

index 32d6c7eb43c3660a11c8ab3c053f8e81a75968b1..fa8485269a22f31e7c101dbd08ec35316d545c80 100644 (file)
@@ -132,14 +132,15 @@ void VectorFilterDouble::Process()
                 int iLine;
                 int ipLstvec2;
                 bool okLine;
-                for (iLine=1 ; iLine < (*pLstVec[0]).size() ; iLine++ )
+                for (iLine=0 ; iLine < (*pLstVec[0]).size() ; iLine++ )
                 {
                     okLine=false;
-                    for ( ipLstvec2=0 ; ipLstvec2<pLstVec.size() ; ipLstvec2++)
-                    {
-                        if ( (*pLstVec[ipLstvec2])[iLine]!=(*pLstVec[ipLstvec2])[iLine-1] )  { okLine=true; }
-                    } // for ipLstVec2
-                            
+                    if (iLine>0){
+                        for ( ipLstvec2=0 ; ipLstvec2<pLstVec.size() ; ipLstvec2++)
+                        {
+                            if ( (*pLstVec[ipLstvec2])[iLine]!=(*pLstVec[ipLstvec2])[iLine-1] )  { okLine=true; }
+                        } // for ipLstVec2
+                    } // if iLine>0
                     if ( (okLine==true) || (iLine==0) )
                     {
                         for (ipLstvec2=0 ; ipLstvec2<pLstVec.size() ; ipLstvec2++)