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:
authorYury Melnichek <melnichek@gmail.com>2011-09-11 14:46:13 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:23:42 +0300
commit4d56813e90f79ba0468cec3ceb448f214988a405 (patch)
tree5113594e54e35e8b247d1e7d8947a503c552763f /indexer/feature_covering.cpp
parentf1efd73fe689d8fbceff7b453567f2660f554aaf (diff)
CellId refactoring: remove default value for level in CellId::FromXY().
Diffstat (limited to 'indexer/feature_covering.cpp')
-rw-r--r--indexer/feature_covering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/feature_covering.cpp b/indexer/feature_covering.cpp
index 452feea7cc..3ecd715d67 100644
--- a/indexer/feature_covering.cpp
+++ b/indexer/feature_covering.cpp
@@ -105,7 +105,8 @@ vector<int64_t> CoverFeature(FeatureType const & f, uint64_t cellPenaltyArea)
{
m2::PointD pt = featureIntersector.m_Polyline[0];
return vector<int64_t>(
- 1, RectId::FromXY(static_cast<uint32_t>(pt.x), static_cast<uint32_t>(pt.y)).ToInt64());
+ 1, RectId::FromXY(static_cast<uint32_t>(pt.x), static_cast<uint32_t>(pt.y),
+ RectId::DEPTH_LEVELS - 1).ToInt64());
}
vector<RectId> cells;