|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86333 - trunk/boost/geometry/algorithms/detail/overlay
From: adam.wulkiewicz_at_[hidden]
Date: 2013-10-16 11:36:32
Author: awulkiew
Date: 2013-10-16 11:36:32 EDT (Wed, 16 Oct 2013)
New Revision: 86333
URL: http://svn.boost.org/trac/boost/changeset/86333
Log:
[geometry] fixed errors in overlay/follow.hpp related to proper usage of Linestring concept.
Text files modified:
trunk/boost/geometry/algorithms/detail/overlay/follow.hpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/geometry/algorithms/detail/overlay/follow.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/follow.hpp Wed Oct 16 11:35:52 2013 (r86332)
+++ trunk/boost/geometry/algorithms/detail/overlay/follow.hpp 2013-10-16 11:36:32 EDT (Wed, 16 Oct 2013) (r86333)
@@ -61,7 +61,7 @@
<
point_type,
0, dimension<point_type>::value
- >::apply(point_in_between, linestring[op.seg_id.segment_index], turn.point);
+ >::apply(point_in_between, *(::boost::begin(linestring) + op.seg_id.segment_index), turn.point);
return geometry::covered_by(point_in_between, polygon);
}
@@ -182,11 +182,13 @@
// and add the output piece
geometry::copy_segments<false>(linestring, segment_id, index, current_piece);
detail::overlay::append_no_duplicates(current_piece, point);
- if (current_piece.size() > 1)
+ if (::boost::size(current_piece) > 1)
{
*out++ = current_piece;
}
current_piece.clear();
+ //traits::clear<LineStringOut>::apply(current_piece);
+ geometry::clear(current_piece);
}
static inline bool is_entered(bool entered)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk