From: adv Date: Thu, 28 Nov 2013 04:12:47 +0000 (+0000) Subject: Debug minor changes. X-Git-Tag: issue_132_11_28~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05ee2a655d95a8c87467aa8f4a7938af7d6fd7ed;p=modules%2Fhydro.git Debug minor changes. --- 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