From 574baec13a6437fed66108df9b96cb748f92bd54 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 9 Jul 2015 06:59:30 +0200
Subject: [PATCH] [MeL] Using operator= to (re)set the coordinates of p.

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

diff --git a/MeshLib/ElementCoordinatesMappingLocal.cpp b/MeshLib/ElementCoordinatesMappingLocal.cpp
index 044d7e9ac22..cd7c788e996 100644
--- a/MeshLib/ElementCoordinatesMappingLocal.cpp
+++ b/MeshLib/ElementCoordinatesMappingLocal.cpp
@@ -28,7 +28,7 @@ void rotateToLocal(
     std::vector<MathLib::Point3d> &points)
 {
     for (auto& p : points)
-        p.setCoords((matR2local*p).getCoords());
+        p = matR2local*p;
 }
 
 /// get a rotation matrix to the global coordinates
-- 
GitLab