From cd39a4822893f8554f0b988ae0b79a97b923518d Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Mon, 22 Jul 2013 07:12:56 +0200 Subject: [PATCH] Using return value of GeoLib::mergePoints(). --- GeoLib/GEOObjects.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GeoLib/GEOObjects.cpp b/GeoLib/GEOObjects.cpp index 7f7018fedd7..dc11e142623 100644 --- a/GeoLib/GEOObjects.cpp +++ b/GeoLib/GEOObjects.cpp @@ -418,7 +418,8 @@ int GEOObjects::mergeGeometries (std::vector<std::string> const & geo_names, std::vector<std::size_t> pnt_offsets(n_geo_names, 0); - mergePoints(geo_names, merged_geo_name, pnt_offsets); + if (mergePoints(geo_names, merged_geo_name, pnt_offsets)) + return -1; mergePolylines(geo_names, merged_geo_name, pnt_offsets); -- GitLab