return true;
}
+void HYDROData_Profile::Invalidate()
+{
+ TDF_Label aFirstLabel = myLab.FindChild( DataTag_FirstPoint, false );
+ if ( !aFirstLabel.IsNull() )
+ aFirstLabel.ForgetAllAttributes();
+
+ TDF_Label aLastLabel = myLab.FindChild( DataTag_LastPoint, false );
+ if ( !aLastLabel.IsNull() )
+ aLastLabel.ForgetAllAttributes();
+}
+
Handle(HYDROData_ProfileUZ) HYDROData_Profile::GetProfileUZ( const bool theIsCreate ) const
{
Handle(HYDROData_ProfileUZ) aProfileUZ;
// Close the file
aFile.Close();
- for ( int i = 1, n = aCreatedProfiles.Length(); i < n ; ++i )
+ for ( int i = 1, n = aCreatedProfiles.Length(); i <= n ; ++i )
{
Handle(HYDROData_Profile) aProfile = aCreatedProfiles.Value( i );
if ( aRes )