From: Eduardo DAVILA Date: Thu, 16 Mar 2023 10:11:05 +0000 (+0100) Subject: #3497 Bug in std VectorFilterString X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=160a7addf97aff527f10d0a1cddca2f068ee0034;p=bbtk.git #3497 Bug in std VectorFilterString --- diff --git a/packages/std/src/bbstdVectorFilterString.cxx b/packages/std/src/bbstdVectorFilterString.cxx index d4a9c9d..350c845 100644 --- a/packages/std/src/bbstdVectorFilterString.cxx +++ b/packages/std/src/bbstdVectorFilterString.cxx @@ -365,10 +365,10 @@ void VectorFilterString::EraseDuplicateLines() { printf("EED VectorFilterString::Process WARNING! vectors are not of the same size.\n"); } else { - int iLine; - int ipLstvec2; - bool okLine; - int size=0; + int iLine; + int ipLstvec2; + bool okLine; + int size = 0; if (bbGetInputType()==8) { size = pLstVec.size(); } if (bbGetInputType()==9) { size = 1; } for (iLine=1 ; iLine < (*pLstVec[0]).size() ; iLine++ ) @@ -382,7 +382,7 @@ void VectorFilterString::EraseDuplicateLines() tmp2=(*pLstVec[ipLstvec2])[iLine-1]; if ( tmp1.compare(tmp2)!=0 ) { okLine=true; } } // for ipLstVec2 - if ( (okLine==true) || (iLine==0) ) + if ( (okLine==true) || (iLine==1) ) { for (ipLstvec2=0 ; ipLstvec2