diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2016-03-15 16:03:24 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:56:16 +0300 |
commit | 854321aeb9af273fcc17477aeed4be81ae9ccdf6 (patch) | |
tree | 49d56e4a817dd90e4a9710c60695433866764d48 /drape_frontend/rule_drawer.cpp | |
parent | 7a34425fd73e0111a3fb9565c159c5b607fb9fc3 (diff) |
Fixed geometry duplication
Diffstat (limited to 'drape_frontend/rule_drawer.cpp')
-rw-r--r-- | drape_frontend/rule_drawer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drape_frontend/rule_drawer.cpp b/drape_frontend/rule_drawer.cpp index f7a8756989..c2e63fa7d3 100644 --- a/drape_frontend/rule_drawer.cpp +++ b/drape_frontend/rule_drawer.cpp @@ -254,14 +254,16 @@ void RuleDrawer::operator()(FeatureType const & f) df::TextViewParams tp; tp.m_anchor = dp::Center; - tp.m_depth = 0; + tp.m_depth = 20000; tp.m_primaryText = strings::to_string(key.m_x) + " " + strings::to_string(key.m_y) + " " + strings::to_string(key.m_zoomLevel); tp.m_primaryTextFont = dp::FontDecl(dp::Color::Red(), 30); - insertShape(make_unique_dp<TextShape>(r.Center(), tp, false, 0, true)); + drape_ptr<TextShape> textShape = make_unique_dp<TextShape>(r.Center(), tp, false, 0, false); + textShape->DisableDisplacing(); + insertShape(move(textShape)); #endif if (CheckCancelled()) |