Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84670 - trunk/boost/geometry/index/detail/rtree/rstar
From: adam.wulkiewicz_at_[hidden]
Date: 2013-06-06 22:41:25


Author: awulkiew
Date: 2013-06-06 22:41:25 EDT (Thu, 06 Jun 2013)
New Revision: 84670
URL: http://svn.boost.org/trac/boost/changeset/84670

Log:
geometry.index: geometry.index: wrong condition fixed in rstar/choose_next_node.

Text files modified:
   trunk/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: trunk/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp
==============================================================================
--- trunk/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp Thu Jun 6 22:29:41 2013 (r84669)
+++ trunk/boost/geometry/index/detail/rtree/rstar/choose_next_node.hpp 2013-06-06 22:41:25 EDT (Thu, 06 Jun 2013) (r84670)
@@ -110,8 +110,9 @@
 
             // update result
             if ( overlap_diff < smallest_overlap_diff ||
- ( overlap_diff == smallest_overlap_diff && content_diff < smallest_content_diff ) ||
- ( content_diff == smallest_content_diff && content < smallest_content ) )
+ ( overlap_diff == smallest_overlap_diff && ( content_diff < smallest_content_diff ||
+ ( content_diff == smallest_content_diff && content < smallest_content ) )
+ ) )
             {
                 smallest_overlap_diff = overlap_diff;
                 smallest_content_diff = content_diff;


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