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:
authorIlya Zverev <zverik@textual.ru>2016-07-12 13:41:18 +0300
committerIlya Zverev <zverik@textual.ru>2016-07-12 15:23:55 +0300
commit7c440cb409f12a520ab4a09a4ab443760223988a (patch)
tree3db0b076513532fbd668181230caf0d9c3c34e0a /indexer
parente97402290f1e181de5ba5c4cafa101faafde1b07 (diff)
[generator] Fix wheelchair type
Diffstat (limited to 'indexer')
-rw-r--r--indexer/feature_visibility.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp
index 3eb5ec31f5..75790733e0 100644
--- a/indexer/feature_visibility.cpp
+++ b/indexer/feature_visibility.cpp
@@ -215,6 +215,9 @@ namespace
static const uint32_t psurface = classif().GetTypeByPath({ "psurface" });
static const uint32_t wheelchair = classif().GetTypeByPath({ "wheelchair" });
+ // Caching type length to exclude generic [wheelchair].
+ uint8_t const typeLength = ftype::GetLevel(type);
+
if (g == GEOM_LINE || g == GEOM_UNDEFINED)
{
if (roundabout == type)
@@ -230,7 +233,7 @@ namespace
// We're okay with the type being already truncated above.
ftype::TruncValue(type, 1);
- if (wheelchair == type)
+ if (wheelchair == type && typeLength == 2)
return true;
return false;