From 13399c9ab598455e41787e3561e084f63fa32f21 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 16 Jan 2015 14:00:19 +0100
Subject: [PATCH] [MeL] Using other constructor.

---
 MeshLib/convertMeshToGeo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MeshLib/convertMeshToGeo.cpp b/MeshLib/convertMeshToGeo.cpp
index 5f8c655f916..0a3b78bf196 100644
--- a/MeshLib/convertMeshToGeo.cpp
+++ b/MeshLib/convertMeshToGeo.cpp
@@ -41,7 +41,7 @@ bool convertMeshToGeo(const MeshLib::Mesh &mesh, GeoLib::GEOObjects &geo_objects
 	const std::vector<MeshLib::Node*> &nodes = mesh.getNodes();
 
 	for (unsigned i=0; i<nNodes; ++i)
-		(*points)[i] = new GeoLib::Point(static_cast<GeoLib::Point>(*nodes[i]));
+		(*points)[i] = new GeoLib::Point(nodes[i]->getCoords());
 
 	std::string mesh_name (mesh.getName());
 	geo_objects.addPointVec(points, mesh_name, nullptr, eps);
-- 
GitLab