From be5483a0add5b80f2ce299e0847fe1b9b326bf64 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 4 Dec 2020 12:14:08 +0100 Subject: [PATCH] Do not skip thin (elongated) QuadTree leaves. --- hurricane/src/hurricane/QuadTree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hurricane/src/hurricane/QuadTree.cpp b/hurricane/src/hurricane/QuadTree.cpp index a1288499..d88fea7b 100644 --- a/hurricane/src/hurricane/QuadTree.cpp +++ b/hurricane/src/hurricane/QuadTree.cpp @@ -851,8 +851,8 @@ void QuadTree_GosUnder::Locator::progress() _currentQuadTree = _currentQuadTree->_getNextQuadTree(_area); if (not _currentQuadTree) break; if ( (_threshold <= 0) - or ( (_currentQuadTree->getBoundingBox().getWidth () > _threshold) - and (_currentQuadTree->getBoundingBox().getHeight() > _threshold)) ) + or ( (_currentQuadTree->getBoundingBox().getWidth () > _threshold) + or (_currentQuadTree->getBoundingBox().getHeight() > _threshold)) ) break; // cerr << "Pruning QuadTree:" << _currentQuadTree // << " _threshold:" << DbU::getValueString(_threshold)