From ada2a8b63a91c3488f9351419f1244b0ee443d2d Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 9 Feb 2021 16:16:42 +0000 Subject: [PATCH] EgtExecutor 2.3b2 : - corretta ExeSaveMachGroupToFile con oggetti copia. --- EXE_GeomDB.cpp | 7 ++++++- EgtExecutor.rc | Bin 16176 -> 16176 bytes 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/EXE_GeomDB.cpp b/EXE_GeomDB.cpp index 9b23606..5057fc1 100644 --- a/EXE_GeomDB.cpp +++ b/EXE_GeomDB.cpp @@ -514,8 +514,13 @@ ExeSaveMachGroupToFile( int nMGroupId, const string& sFilePath, int nFlag) while ( nRawId != GDB_ID_NULL) { int nPartId = pMachMgr->GetFirstPartInRawPart( nRawId) ; while ( nPartId != GDB_ID_NULL) { - if ( find( vId.begin(), vId.end(), nPartId) == vId.end()) + if ( find( vId.begin(), vId.end(), nPartId) == vId.end()) { vId.emplace_back( nPartId) ; + // potrebbe essere un duplicato, recupero eventuale originale + int nOrigId = GDB_ID_NULL ; pGeomDB->GetInfo( nPartId, GDB_SI_DUPSOU, nOrigId) ; + if ( ExeIsPart( nOrigId) && find( vId.begin(), vId.end(), nOrigId) == vId.end()) + vId.emplace_back( nOrigId) ; + } nPartId = pMachMgr->GetNextPartInRawPart( nPartId) ; } nRawId = pMachMgr->GetNextRawPart( nRawId) ; diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 1b2f3cebb010d0aab0b02e9c3180f887d623132c..b486e568ead68a478f38e6fc5ac85a3fbf295f38 100644 GIT binary patch delta 79 zcmdl`x1nysFE&P_&A-`PnSqoe*K!sx?>N)s4T4pSMw1=6k~jAW*?>e(i-FY$N+HxV MD8kglDP58Q0C_7LTL1t6 delta 79 zcmdl`x1nysFE&QQ&A-`PnSqoe*K!sx?>N)s4T4pShLat+k~jAW*?>e(i-FY$N+HxV MD8kglDP58Q0C(RTQvd(}