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/text_shape.hpp | |
parent | 7a34425fd73e0111a3fb9565c159c5b607fb9fc3 (diff) |
Fixed geometry duplication
Diffstat (limited to 'drape_frontend/text_shape.hpp')
-rw-r--r-- | drape_frontend/text_shape.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drape_frontend/text_shape.hpp b/drape_frontend/text_shape.hpp index e95466245b..5df93d775f 100644 --- a/drape_frontend/text_shape.hpp +++ b/drape_frontend/text_shape.hpp @@ -20,6 +20,9 @@ public: void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const override; MapShapeType GetType() const override { return MapShapeType::OverlayType; } + // Only for testing purposes! + void DisableDisplacing() { m_disableDisplacing = true; } + private: void DrawSubString(StraightTextLayout const & layout, dp::FontDecl const & font, glsl::vec2 const & baseOffset, ref_ptr<dp::Batcher> batcher, @@ -39,6 +42,8 @@ private: bool m_hasPOI; bool m_affectedByZoomPriority; size_t m_textIndex; + + bool m_disableDisplacing = false; }; } // namespace df |