X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Profile.cxx;h=bcfc8fb0f816e884bc5ab8e63daa6fd24a4b7228;hb=4e1b53167581be7e084a3d71c075507bc6699c06;hp=08ad8a4bee793359d7efb28c615f6e03828af42b;hpb=a8fc21e48db08ba3de63519dcae1a8e3fe560ee4;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Profile.cxx b/src/HYDROCurveCreator/CurveCreator_Profile.cxx index 08ad8a4b..bcfc8fb0 100644 --- a/src/HYDROCurveCreator/CurveCreator_Profile.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Profile.cxx @@ -71,7 +71,9 @@ bool CurveCreator_Profile::clearInternal() myDisplayer->eraseAll( true ); // Delete all allocated data. - mySections[ 0 ]->myPoints.clear(); + CurveCreator_Section* aSection = getSection( 0 ); + if ( aSection ) + aSection->myPoints.clear(); return true; } @@ -135,7 +137,7 @@ bool CurveCreator_Profile::addPointsInternal( const CurveCreator::SectionsMap &t { bool res = false; - CurveCreator_Section* aSection = mySections.at( 0 ); + CurveCreator_Section* aSection = getSection( 0 ); if( !aSection ) return res; @@ -209,7 +211,7 @@ bool CurveCreator_Profile::setPointInternal( const CurveCreator::SectionsMap &th } int anISection = 0; - CurveCreator_Section* aSection = mySections.at( anISection ); + CurveCreator_Section* aSection = getSection( anISection ); if( !aSection ) return aRes;