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:
authorvng <viktor.govako@gmail.com>2014-06-05 20:47:03 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:16:45 +0300
commita1688c0fe9f2f02adf574c2c050b739d4b558817 (patch)
tree1fb086db9b20c2e0cc047d2580e1e0f641e2926d /map/mwm_url.cpp
parent54877816d28ec828ce8372702022fd44a9af3da7 (diff)
Fixed showing mark routine.
Diffstat (limited to 'map/mwm_url.cpp')
-rw-r--r--map/mwm_url.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/map/mwm_url.cpp b/map/mwm_url.cpp
index 19957d99a0..b78adb9400 100644
--- a/map/mwm_url.cpp
+++ b/map/mwm_url.cpp
@@ -191,14 +191,13 @@ bool ParsedMapApi::GetViewportRect(ScalesProcessor const & scales, m2::RectD & r
}
}
-bool ParsedMapApi::GetSinglePoint(m2::PointD & point) const
+UserMark const * ParsedMapApi::GetSinglePoint() const
{
ASSERT(m_controller != NULL, ());
if (m_controller->GetUserMarkCount() != 1)
- return false;
+ return 0;
- point = m_controller->GetUserMark(0)->GetOrg();
- return true;
+ return m_controller->GetUserMark(0);
}
}