EgtGeomKernel 2.1f2 :
- aggiunta Removing a UserObj.
This commit is contained in:
@@ -1298,6 +1298,15 @@ GeomDB::Erase( GdbObj* pGdbObj)
|
||||
if ( pGdbObj == nullptr || pGdbObj == &m_GrpRadix)
|
||||
return false ;
|
||||
|
||||
// notifico eventuale UserObj
|
||||
if ( pGdbObj->m_pUserObj != nullptr) {
|
||||
// recupero il successivo
|
||||
const GdbObj* pGdbNext = pGdbObj->GetNext() ;
|
||||
int nNextId = ( pGdbNext != nullptr ? pGdbNext->m_nId : GDB_ID_NULL) ;
|
||||
if ( ! pGdbObj->m_pUserObj->Removing( pGdbObj->GetParentId(), nNextId))
|
||||
return false ;
|
||||
}
|
||||
|
||||
// lo tolgo dalla lista
|
||||
pGdbObj->Remove() ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user