// Refill the existing list
aNamesList->Clear();
- TDataStd_ListIteratorOfListOfExtendedString aNamesIter( aNamesList->List() );
+ TCollection_ExtendedString aNewSectName = theSectionName;
+
+ TDataStd_ListIteratorOfListOfExtendedString aNamesIter( anOldNamesList );
for ( int i = 0; aNamesIter.More(); aNamesIter.Next(), ++i )
- aNamesList->Append( i == theSectionIndex ? theSectionName : aNamesIter.Value() );
+ aNamesList->Append( i == theSectionIndex ? aNewSectName : aNamesIter.Value() );
}
HYDROData_PolylineXY::SectionType HYDROData_PolylineXY::GetSectionType( const int theSectionIndex ) const