From 67439ed685f5991168f2b6486f8b3ec553c46df1 Mon Sep 17 00:00:00 2001
From: Karsten Rink <karsten.rink@ufz.de>
Date: Tue, 12 Mar 2013 14:17:37 +0100
Subject: [PATCH] fixed point reading bug in xmlinterface

---
 FileIO/XmlIO/XmlGmlInterface.cpp      | 4 ++--
 Gui/DataView/StratView/CMakeLists.txt | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/FileIO/XmlIO/XmlGmlInterface.cpp b/FileIO/XmlIO/XmlGmlInterface.cpp
index 8572333f6eb..4bbda09a425 100644
--- a/FileIO/XmlIO/XmlGmlInterface.cpp
+++ b/FileIO/XmlIO/XmlGmlInterface.cpp
@@ -77,10 +77,10 @@ int XmlGmlInterface::readFile(const QString &fileName)
 			geoObjects->addPointVec(points, gliName, pnt_names);
 		}
 		else if (type_node.nodeName().compare("polylines") == 0)
-			readPolylines(type_node, polylines, points,
+			readPolylines(type_node, polylines, const_cast<std::vector<GeoLib::Point*>*>(geoObjects->getPointVec(gliName)),
 			              geoObjects->getPointVecObj(gliName)->getIDMap(), ply_names);
 		else if (type_node.nodeName().compare("surfaces") == 0)
-			readSurfaces(type_node, surfaces, points,
+			readSurfaces(type_node, surfaces, const_cast<std::vector<GeoLib::Point*>*>(geoObjects->getPointVec(gliName)),
 			             geoObjects->getPointVecObj(gliName)->getIDMap(), sfc_names);
 		else
 			WARN("Unknown XML-Node found in file.");
diff --git a/Gui/DataView/StratView/CMakeLists.txt b/Gui/DataView/StratView/CMakeLists.txt
index 6ee9a5fff88..7df464a004d 100644
--- a/Gui/DataView/StratView/CMakeLists.txt
+++ b/Gui/DataView/StratView/CMakeLists.txt
@@ -58,6 +58,7 @@ target_link_libraries( StratView
 	${QT_LIBRARIES}
 	BaseLib
 	GeoLib
+	MathLib
 )
 
 set_property(TARGET StratView PROPERTY FOLDER "DataExplorer")
-- 
GitLab