myDisplayer->eraseAll( true );
// Delete all allocated data.
- mySections[ 0 ]->myPoints.clear();
+ CurveCreator_Section* aSection = getSection( 0 );
+ if ( aSection )
+ aSection->myPoints.clear();
return true;
}
-bool CurveCreator_Profile::joinInternal( const int theISectionTo,
- const int theISectionFrom )
+bool CurveCreator_Profile::joinInternal( const std::list<int>& theSections )
{
return false;
}
-bool CurveCreator_Profile::join( const int theISectionTo,
- const int theISectionFrom )
+bool CurveCreator_Profile::join( const std::list<int>& theSections )
{
return false;
}
{
bool res = false;
- CurveCreator_Section* aSection = mySections.at( 0 );
+ CurveCreator_Section* aSection = getSection( 0 );
if( !aSection )
return res;
}
int anISection = 0;
- CurveCreator_Section* aSection = mySections.at( anISection );
+ CurveCreator_Section* aSection = getSection( anISection );
if( !aSection )
return aRes;