diff options
author | vng <viktor.govako@gmail.com> | 2013-03-23 21:07:40 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:52:17 +0300 |
commit | 67888547103f3111a73f188575a438f55088ef7d (patch) | |
tree | d6adc37e8229ce499896d035c3ff99f1f33a015c /map/bookmark.hpp | |
parent | ad977f5b33b832a62ec2acfb510c696c37c1a46b (diff) |
Keep scale and timestamp when editing (replacing) bookmark in category.
Diffstat (limited to 'map/bookmark.hpp')
-rw-r--r-- | map/bookmark.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/map/bookmark.hpp b/map/bookmark.hpp index 20f0ca9724..6fca356784 100644 --- a/map/bookmark.hpp +++ b/map/bookmark.hpp @@ -58,6 +58,10 @@ class BookmarkCategory : private noncopyable /// Stores file name from which category was loaded string m_file; + /// This function is called when bookmark is editing or replacing. + /// We need to assign private params to the newly created bookmark from the old one. + void AssignPrivateParams(size_t index, Bookmark & bm) const; + public: BookmarkCategory(string const & name) : m_name(name), m_visible(true) {} ~BookmarkCategory(); @@ -68,10 +72,6 @@ public: //@{ void AddBookmark(Bookmark const & bm); void ReplaceBookmark(size_t index, Bookmark const & bm); - - /// This function is called when bookmark is editing or replacing. - /// We need to assign times to the newly created bookmark from the old one. - void AssignTimeStamp(size_t index, Bookmark & bm) const; //@} void SetVisible(bool isVisible) { m_visible = isVisible; } |