From 2875ffb1f15a11fb9c0ec050d218e69b13968b82 Mon Sep 17 00:00:00 2001 From: vng Date: Thu, 27 Oct 2011 04:55:42 +0300 Subject: [PATCH] Fix rect covering for tiling drawing. Take into account index cell depth. --- indexer/feature_covering.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indexer/feature_covering.cpp b/indexer/feature_covering.cpp index 945ad91deb..c927c26445 100644 --- a/indexer/feature_covering.cpp +++ b/indexer/feature_covering.cpp @@ -209,8 +209,13 @@ IntervalsT const & CoveringGetter::Get(int scale) break; case 1: - AppendLowerLevels(GetRectIdAsIs(m_rect), cellDepth, m_res[ind]); + { + RectId id = GetRectIdAsIs(m_rect); + while (id.Level() >= cellDepth) + id = id.Parent(); + AppendLowerLevels(id, cellDepth, m_res[ind]); break; + } case 2: m_res[ind].push_back(IntervalsT::value_type(0, static_cast((1ULL << 63) - 1)));