Salome HOME
porting on linux
[modules/hydro.git] / src / HYDROData / HYDROData_Bathymetry.cxx
index 472101b02b85f6ccf7c025d2a332c9437b03a0cf..f7d31037c98ff71954ad8b203b6e975a10ba5736 100644 (file)
@@ -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