]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Debug minor changes.
authoradv <adv@opencascade.com>
Thu, 28 Nov 2013 04:12:47 +0000 (04:12 +0000)
committeradv <adv@opencascade.com>
Thu, 28 Nov 2013 04:12:47 +0000 (04:12 +0000)
src/HYDROData/HYDROData_PolylineXY.cxx

index 04039c96a9f4a9591437404d3247bae5f60824f4..6c17dd6dc14dc37024eeebd86601e657c545f64f 100755 (executable)
@@ -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