From 3413680a237138c16cb1a0469b272fef93e53c32 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 10 Feb 2016 08:09:01 +0100 Subject: [PATCH] Bugfix: if test was inverted --- Point_set_processing_3/include/CGAL/Point_set_3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Point_set_processing_3/include/CGAL/Point_set_3.h b/Point_set_processing_3/include/CGAL/Point_set_3.h index 32c6cab6188..0477fcb0fcd 100644 --- a/Point_set_processing_3/include/CGAL/Point_set_3.h +++ b/Point_set_processing_3/include/CGAL/Point_set_3.h @@ -97,7 +97,7 @@ private: Index_back_inserter& operator*() { return *this; } Index_back_inserter& operator= (std::size_t& ind) { - if(!(ps.size() <= (typename Point_set::Item(ind)))) + if(ps.size() <= (typename Point_set::Item(ind))) ps.add_item(); put(ps.indices(), Point_set::Item(ind),ind); ++ ind; @@ -116,7 +116,7 @@ private: Property_push_pmap(Point_set& ps, Property& prop, std::size_t ind=0) : ps(ps), prop(prop), ind(ind) {} inline friend void put(Property_push_pmap& pm, std::size_t& i, typename Property::value_type& t) { - if(!(pm.ps.size() <= (pm.ind))) + if(pm.ps.size() <= (pm.ind)) pm.ps.add_item(); put(pm.prop, Point_set::Item(pm.ind), t); i = pm.ind; @@ -165,7 +165,7 @@ public: return m_indices; } - Point_pmap points() + Point_pmap& points() { return m_points; }