EgtExecutor :

- piccola miglioria in seleziona7deseleziona oggetti di gruppi.
This commit is contained in:
Dario Sassi
2018-09-21 06:33:13 +00:00
parent 88a7bffe54
commit aad036caa3
+4 -2
View File
@@ -421,7 +421,8 @@ MySelectGroupObjs( IGeomDB* pGeomDB, int nGrpId, int nFilter)
while ( nId != GDB_ID_NULL) {
// Se è gruppo seleziono i suoi componenti (ma non il gruppo)
if ( pGeomDB->GetGdbType( nId) == GDB_TY_GROUP) {
bOk = MySelectGroupObjs( pGeomDB, nId, nFilter) ;
if ( ! MySelectGroupObjs( pGeomDB, nId, nFilter))
bOk = false ;
}
// altrimenti, se selezionabile lo seleziono direttamente
else {
@@ -446,7 +447,8 @@ MyDeselectGroupObjs( IGeomDB* pGeomDB, int nGrpId)
while ( nId != GDB_ID_NULL) {
// Se è gruppo deseleziono i suoi componenti
if ( pGeomDB->GetGdbType( nId) == GDB_TY_GROUP) {
bOk = MyDeselectGroupObjs( pGeomDB, nId) ;
if ( ! MyDeselectGroupObjs( pGeomDB, nId))
bOk = false ;
}
// Eseguo deselezione (anche del gruppo per maggior sicurezza)
if ( ! pGeomDB->DeselectObj( nId))