From 05ee2a655d95a8c87467aa8f4a7938af7d6fd7ed Mon Sep 17 00:00:00 2001 From: adv Date: Thu, 28 Nov 2013 04:12:47 +0000 Subject: [PATCH] Debug minor changes. --- src/HYDROData/HYDROData_PolylineXY.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/HYDROData/HYDROData_PolylineXY.cxx b/src/HYDROData/HYDROData_PolylineXY.cxx index 04039c96..6c17dd6d 100755 --- a/src/HYDROData/HYDROData_PolylineXY.cxx +++ b/src/HYDROData/HYDROData_PolylineXY.cxx @@ -303,9 +303,11 @@ void HYDROData_PolylineXY::SetSectionName( const int theSec // 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 -- 2.39.2