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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-12-20 20:54:11 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2019-12-23 14:08:15 +0300
commit766818f2a464629501ce7b7a6800b56efa382743 (patch)
tree8631a545e682bdff582594d1a6375b392e910acc /map/framework.cpp
parent7265571793b6b41bc99690420b38b1f1de8eab9f (diff)
[bookmarks][android] Fixed finding nearest bookmark.
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 11c91f885d..11a31bbfe4 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2655,7 +2655,9 @@ UserMark const * Framework::FindUserMarkInTapPosition(place_page::BuildInfo cons
{
if (buildInfo.m_userMarkId != kml::kInvalidMarkId)
{
- auto mark = GetBookmarkManager().GetUserMark(buildInfo.m_userMarkId);
+ auto const & bm = GetBookmarkManager();
+ auto mark = bm.IsBookmark(buildInfo.m_userMarkId) ? bm.GetBookmark(buildInfo.m_userMarkId)
+ : bm.GetUserMark(buildInfo.m_userMarkId);
if (mark != nullptr)
return mark;
}