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:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-12-07 18:48:47 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2015-12-29 16:36:16 +0300
commit23c2bfe2fde8eca0693fb9349eb9cb18f7e3f418 (patch)
tree1c3874ef34a2dd985824fedd3788241bcbeb96dc /drape_frontend/rule_drawer.cpp
parent1602dd561ad8132e1ab0f08b70d32c739453ad0b (diff)
Fixed clipping
Diffstat (limited to 'drape_frontend/rule_drawer.cpp')
-rw-r--r--drape_frontend/rule_drawer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drape_frontend/rule_drawer.cpp b/drape_frontend/rule_drawer.cpp
index d537ca6172..3e4c379ba8 100644
--- a/drape_frontend/rule_drawer.cpp
+++ b/drape_frontend/rule_drawer.cpp
@@ -134,7 +134,7 @@ void RuleDrawer::operator()(FeatureType const & f)
if (s.AreaStyleExists())
{
- bool const is3dBuilding = m_is3d ? ftypes::IsBuildingChecker::Instance()(f) : false;
+ bool const is3dBuilding = m_is3d ? (ftypes::IsBuildingChecker::Instance()(f) && f.GetLayer() >= 0) : false;
ApplyAreaFeature apply(insertShape, f.GetID(), is3dBuilding,
minVisibleScale, f.GetRank(), s.GetCaptionDescription());
f.ForEachTriangleRef(apply, zoomLevel);