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:
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;
}