EgtGeomKernel 1.5f5 :
- gestione salvataggio in modalità testo compresso - aggiunto controlli in scritture per salvataggio.
This commit is contained in:
+6
-3
@@ -411,7 +411,8 @@ bool
|
||||
CurveComposite::Save( NgeWriter& ngeOut) const
|
||||
{
|
||||
// numero di curve
|
||||
ngeOut.WriteInt( m_nCounter, nullptr, true) ;
|
||||
if ( ! ngeOut.WriteInt( m_nCounter, nullptr, true))
|
||||
return false ;
|
||||
// ciclo sulle curve componenti
|
||||
int i = 0 ;
|
||||
const ICurve* pCrvSmpl = GetFirstCurve() ;
|
||||
@@ -421,10 +422,12 @@ CurveComposite::Save( NgeWriter& ngeOut) const
|
||||
if ( pCSmplRW == nullptr)
|
||||
return false ;
|
||||
// emetto tipo della curva semplice
|
||||
ngeOut.WriteKey( pCSmplRW->GetNgeId()) ;
|
||||
if ( ! ngeOut.WriteKey( pCSmplRW->GetNgeId()))
|
||||
return false ;
|
||||
// assegno ed emetto nome della curva semplice
|
||||
string sCrvName = "#" + ToString( ++i) ;
|
||||
ngeOut.WriteString( sCrvName, nullptr, true) ;
|
||||
if ( ! ngeOut.WriteString( sCrvName, nullptr, true))
|
||||
return false ;
|
||||
// salvataggio della curva semplice
|
||||
if ( ! pCSmplRW->Save( ngeOut))
|
||||
return false ;
|
||||
|
||||
Reference in New Issue
Block a user