From 012b6add6fac87f955db7730368ca2e11a935f9b Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 26 May 2016 06:47:44 +0200 Subject: [PATCH] [GL] Make addPoint() and insertPoint() virtual. --- GeoLib/Polyline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GeoLib/Polyline.h b/GeoLib/Polyline.h index 3de05b06663..83cbf53ea5e 100644 --- a/GeoLib/Polyline.h +++ b/GeoLib/Polyline.h @@ -118,7 +118,7 @@ public: * addition of the point would result in empty line segment \c false is * returned. */ - bool addPoint(std::size_t pnt_id); + virtual bool addPoint(std::size_t pnt_id); /** * Method inserts a new point (that have to be inside the _ply_pnts vector) @@ -131,7 +131,7 @@ public: * @return true if the point could be inserted, else false (if empty line * segments would be created). */ - bool insertPoint(std::size_t pos, std::size_t pnt_id); + virtual bool insertPoint(std::size_t pos, std::size_t pnt_id); /** * Method removes a point from the polyline. The connecting line segments will -- GitLab