[search] Search one level deeper.

This commit is contained in:
Yury Melnichek 2011-05-26 17:41:45 +02:00 committed by Alex Zolotarev
parent 865e04cd78
commit fbbbabbd6e

View file

@ -56,7 +56,9 @@ struct FeatureProcessor
void Query::Search(function<void (Result const &)> const & f)
{
FeatureProcessor featureProcessor(*this);
m_pIndex->ForEachInViewport(featureProcessor, m_rect);
m_pIndex->ForEachInRect(featureProcessor, m_rect,
min(scales::GetUpperScale(), scales::GetScaleLevel(m_rect) + 1));
vector<Result> results;
results.reserve(m_resuts.size());
while (!m_resuts.empty())