|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r83972 - trunk/boost/geometry/index/detail/rtree/visitors
From: adam.wulkiewicz_at_[hidden]
Date: 2013-04-19 20:41:15
Author: awulkiew
Date: 2013-04-19 20:41:14 EDT (Fri, 19 Apr 2013)
New Revision: 83972
URL: http://svn.boost.org/trac/boost/changeset/83972
Log:
geometry.index.rtree: fixed error in nearest query iterative visitor.
Text files modified:
trunk/boost/geometry/index/detail/rtree/visitors/nearest_query.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/geometry/index/detail/rtree/visitors/nearest_query.hpp
==============================================================================
--- trunk/boost/geometry/index/detail/rtree/visitors/nearest_query.hpp (original)
+++ trunk/boost/geometry/index/detail/rtree/visitors/nearest_query.hpp 2013-04-19 20:41:14 EDT (Fri, 19 Apr 2013)
@@ -527,7 +527,7 @@
::template get<point_relation_tag>(distances);
// if there is not enough values or current value is further than currently furthest neighbour
- if ( neighbors.size() < max_count() || 0 == old_neighbors_count || dist < neighbors[old_neighbors_count - 1].first )
+ if ( old_neighbors_count < max_count() || 0 == old_neighbors_count || dist < neighbors[old_neighbors_count - 1].first )
{
neighbors.push_back(std::make_pair(dist, boost::addressof(*it)));
}
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