Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ImportFromFile()
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_Bathymetry.cxx
diff --git
a/src/HYDROData/HYDROData_Bathymetry.cxx
b/src/HYDROData/HYDROData_Bathymetry.cxx
index 472101b02b85f6ccf7c025d2a332c9437b03a0cf..f7d31037c98ff71954ad8b203b6e975a10ba5736 100644
(file)
--- a/
src/HYDROData/HYDROData_Bathymetry.cxx
+++ b/
src/HYDROData/HYDROData_Bathymetry.cxx
@@
-552,6
+552,11
@@
bool HYDROData_Bathymetry::IsAltitudesInverted() const
return aRes;
}
return aRes;
}
+bool HYDROData_Bathymetry::ImportFromFile( const QString& theFileName )
+{
+ return ImportFromFiles(QStringList(theFileName));
+}
+
bool HYDROData_Bathymetry::ImportFromFiles( const QStringList& theFileNames )
{
AltitudePoints AllPoints;
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();
// Close the file
aFile.close();
- AllPoints.
Append(aPoints
);
+ AllPoints.
insert(AllPoints.end(), aPoints.begin(), aPoints.end()
);
}
// Convert from global to local CS
}
// Convert from global to local CS