X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Bathymetry.cxx;h=f7d31037c98ff71954ad8b203b6e975a10ba5736;hb=d398a8be8e0b0259b476b358d53d234ce4c82379;hp=472101b02b85f6ccf7c025d2a332c9437b03a0cf;hpb=24fb5adcac723810ac120abf37ad191a092cbefe;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Bathymetry.cxx b/src/HYDROData/HYDROData_Bathymetry.cxx index 472101b0..f7d31037 100644 --- a/src/HYDROData/HYDROData_Bathymetry.cxx +++ b/src/HYDROData/HYDROData_Bathymetry.cxx @@ -552,6 +552,11 @@ bool HYDROData_Bathymetry::IsAltitudesInverted() const return aRes; } +bool HYDROData_Bathymetry::ImportFromFile( const QString& theFileName ) +{ + return ImportFromFiles(QStringList(theFileName)); +} + bool HYDROData_Bathymetry::ImportFromFiles( const QStringList& theFileNames ) { AltitudePoints AllPoints; @@ -580,7 +585,7 @@ bool HYDROData_Bathymetry::ImportFromFiles( const QStringList& theFileNames ) // Close the file aFile.close(); - AllPoints.Append(aPoints); + AllPoints.insert(AllPoints.end(), aPoints.begin(), aPoints.end()); } // Convert from global to local CS