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
path: root/map
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2019-04-17 15:36:56 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-04-17 19:04:36 +0300
commit9b19b044b46948e965dd5c1566559cce3c4b5d4a (patch)
tree6bf28f4a0b96e9c329663f417b2bef4d36cc1548 /map
parent83b80a02cdab5fc8664e91e79824573dbe945902 (diff)
Review fixes
Diffstat (limited to 'map')
-rw-r--r--map/framework.cpp4
-rw-r--r--map/framework.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 1b4a1092a2..49adcb7db5 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -1253,10 +1253,10 @@ void Framework::ShowRect(m2::RectD const & rect, int maxScale, bool animation, b
useVisibleViewport);
}
-void Framework::ShowRect(m2::AnyRectD const & rect, bool useVisibleViewport)
+void Framework::ShowRect(m2::AnyRectD const & rect, bool animation, bool useVisibleViewport)
{
if (m_drapeEngine != nullptr)
- m_drapeEngine->SetModelViewAnyRect(rect, true /* isAnim */, useVisibleViewport);
+ m_drapeEngine->SetModelViewAnyRect(rect, animation, useVisibleViewport);
}
void Framework::GetTouchRect(m2::PointD const & center, uint32_t pxRadius, m2::AnyRectD & rect)
diff --git a/map/framework.hpp b/map/framework.hpp
index 9ba4a7bfbc..78f3b3809d 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -634,7 +634,7 @@ public:
/// - Check minimal visible scale according to downloaded countries.
void ShowRect(m2::RectD const & rect, int maxScale = -1, bool animation = true,
bool useVisibleViewport = false);
- void ShowRect(m2::AnyRectD const & rect, bool useVisibleViewport = false);
+ void ShowRect(m2::AnyRectD const & rect, bool animation = true, bool useVisibleViewport = false);
void GetTouchRect(m2::PointD const & center, uint32_t pxRadius, m2::AnyRectD & rect);