From 0d2c3f90456c9f4cd3359299d6838fc87444d3df Mon Sep 17 00:00:00 2001 From: DarioS Date: Tue, 18 Jan 2022 17:40:28 +0100 Subject: [PATCH] EgtExecutor : - corretta ExeIsDuplo (ora riconosce anche Duplo swappati). --- EXE_GdbPartLayers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EXE_GdbPartLayers.cpp b/EXE_GdbPartLayers.cpp index 2cb6633..b6ae154 100644 --- a/EXE_GdbPartLayers.cpp +++ b/EXE_GdbPartLayers.cpp @@ -922,8 +922,10 @@ ExeIsDuplo( int nDupId) if ( nDuploBaseId == GDB_ID_NULL) return false ; // Verifico sia un duplicato (gruppo sotto quello dei duplicati con riferimento a originale) + int nBaseId ; if ( pGeomDB->GetGdbType( nDupId) == GDB_TY_GROUP && - pGeomDB->GetParentId( nDupId) == nDuploBaseId && + ( pGeomDB->GetParentId( nDupId) == nDuploBaseId || + ( pGeomDB->GetInfo( nDupId, GDB_SI_BASE, nBaseId) && pGeomDB->GetParentId( nBaseId) == nDuploBaseId)) && pGeomDB->ExistsInfo( nDupId, GDB_SI_DUPSOU)) return true ; else