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:
authorRoman Kuznetsov <r.kuznetsov@corp.mail.ru>2015-10-27 21:13:27 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:26:52 +0300
commite8dd7a2c26b0803ff31116c3fa1afa9a7a4e182b (patch)
tree362aff3b10bf364f80ccda61ede029a7ed035894 /drape_frontend/gui
parent2af4e00348387f8110252ef1fb5b5bfd6bb1a1a4 (diff)
Fixed location mode setting up and updating for Android
Diffstat (limited to 'drape_frontend/gui')
-rw-r--r--drape_frontend/gui/button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape_frontend/gui/button.cpp b/drape_frontend/gui/button.cpp
index 640c15ca04..9c867ff090 100644
--- a/drape_frontend/gui/button.cpp
+++ b/drape_frontend/gui/button.cpp
@@ -23,9 +23,9 @@ void ApplyAnchor(dp::Anchor anchor, vector<Button::ButtonVertex> & vertices, flo
normalOffset.x = -halfWidth;
if (anchor & dp::Top)
- normalOffset.x = halfHeight;
+ normalOffset.y = halfHeight;
else if (anchor & dp::Bottom)
- normalOffset.x = -halfHeight;
+ normalOffset.y = -halfHeight;
for (Button::ButtonVertex & v : vertices)
v.m_normal = v.m_normal + normalOffset;