Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-09-24 16:05:07 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:24:20 +0300
commit6368e0e6dcaf3fc636b6a8b629c213199c82f8cf (patch)
tree32d3e537710b3752bed7e4fc63ab7db7e904b2f6 /indexer/feature_covering.cpp
parent6a5c67addcdeece9051748b55acfd7a5fe7b7cad (diff)
Add 'maxDepth' parameter to 'CoverRect'. Use different depth for different mwm's.
Diffstat (limited to 'indexer/feature_covering.cpp')
-rw-r--r--indexer/feature_covering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indexer/feature_covering.cpp b/indexer/feature_covering.cpp
index 01b8436791..40d98593b9 100644
--- a/indexer/feature_covering.cpp
+++ b/indexer/feature_covering.cpp
@@ -165,7 +165,7 @@ void AppendLowerLevels(RectId id, int cellDepth, IntervalsT & intervals)
void CoverViewportAndAppendLowerLevels(m2::RectD const & r, int cellDepth, IntervalsT & res)
{
vector<RectId> ids;
- CoverRect<MercatorBounds, RectId>(r.minX(), r.minY(), r.maxX(), r.maxY(), 8, ids);
+ CoverRect<MercatorBounds, RectId>(r.minX(), r.minY(), r.maxX(), r.maxY(), 8, cellDepth, ids);
IntervalsT intervals;
intervals.reserve(ids.size() * 4);