diff --git a/EXE_GdbPartLayers.cpp b/EXE_GdbPartLayers.cpp index e136caa..2cb6633 100644 --- a/EXE_GdbPartLayers.cpp +++ b/EXE_GdbPartLayers.cpp @@ -724,7 +724,12 @@ ExeDuploCount( int nSouId, int& nCount) // Recupero info del sorgente INTVECTOR vnRef ; pGeomDB->GetInfo( nSouId, GDB_SI_DUPLIST, vnRef) ; - nCount = int( vnRef.size()) ; + // Conto i reali duplo + nCount = 0 ; + for ( int i = 0 ; i < int( vnRef.size()) ; ++ i) { + if ( ExeIsDuplo( vnRef[i])) + ++ nCount ; + } return true ; } @@ -739,6 +744,11 @@ ExeDuploList( int nSouId, INTVECTOR& vnRef) return false ; // Recupero info del sorgente pGeomDB->GetInfo( nSouId, GDB_SI_DUPLIST, vnRef) ; + // Elimino duplo non pił esistenti + for ( int i = int( vnRef.size()) - 1 ; i >= 0 ; -- i) { + if ( ! ExeIsDuplo( vnRef[i])) + vnRef.erase( vnRef.begin() + i) ; + } return true ; }