EgtInterface :
- piccole migliorie.
This commit is contained in:
+5
-2
@@ -35,8 +35,10 @@ __stdcall EgtInitGeomDB( void)
|
||||
VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", 0)
|
||||
// creo e recupero un contesto libero
|
||||
int nGseCtx = CreateGseContext() ;
|
||||
if ( nGseCtx == 0)
|
||||
if ( nGseCtx == 0) {
|
||||
LOG_ERROR( GetLogger(), "Error in CreateGseContext (" __FUNCTION__ ")")
|
||||
return 0 ;
|
||||
}
|
||||
GseContext* pGseCtx = GetGseContext( nGseCtx) ;
|
||||
// inserisco il GeomDB nel contesto
|
||||
pGseCtx->m_pGeomDB = Release( pGeomDB) ;
|
||||
@@ -44,7 +46,8 @@ __stdcall EgtInitGeomDB( void)
|
||||
pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ;
|
||||
|
||||
// log avvio DB geometrico
|
||||
LOG_INFO( GetLogger(), "GeomDB started")
|
||||
string sLog = "GeomDB started " + ToString( nGseCtx) ;
|
||||
LOG_INFO( GetLogger(), sLog.c_str())
|
||||
|
||||
return nGseCtx ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user