improve point import and export

This commit is contained in:
wmayer
2018-02-13 00:27:18 +01:00
parent 88e8c98d34
commit 880a200c70
4 changed files with 15 additions and 23 deletions

View File

@@ -55,7 +55,7 @@ void PointsAlgos::Load(PointKernel &points, const char *FileName)
if (!File.isReadable())
throw Base::FileException("File to load not existing or not readable", FileName);
if (File.extension() == "asc" ||File.extension() == "ASC")
if (File.hasExtension("asc"))
LoadAscii(points,FileName);
else
throw Base::RuntimeError("Unknown ending");