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++)