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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 90a49ed7d8..a0ab414f4f 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -363,7 +363,7 @@ void Framework::LoadBookmarks()
}
}
-void Framework::AddBookmark(string const & category, Bookmark const & bm)
+BookmarkCategory * Framework::AddBookmark(string const & category, Bookmark const & bm)
{
// Get global non-rotated viewport rect and calculate viewport scale level.
double const scale = scales::GetScaleLevelD(
@@ -385,7 +385,7 @@ void Framework::AddBookmark(string const & category, Bookmark const & bm)
if (category == cat->GetName())
{
cat->ReplaceBookmark(static_cast<size_t>(index), bm, scale);
- return;
+ return cat;
}
else
{
@@ -397,6 +397,7 @@ void Framework::AddBookmark(string const & category, Bookmark const & bm)
BookmarkCategory * cat = GetBmCategory(category);
cat->AddBookmark(bm, scale);
+ return cat;
}
namespace