From 35b6cf169d59e324c56afd5e1ee1f9153c7cba31 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Tue, 3 Feb 2015 15:48:34 +0300 Subject: [PATCH] Fixed order in which bookmarks are stored to KML file. --- map/bookmark.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/map/bookmark.cpp b/map/bookmark.cpp index f42292aff2..82f1f422b1 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -705,7 +705,8 @@ void BookmarkCategory::SaveToKML(ostream & s) for (size_t i = 0; i < GetBookmarksCount(); ++i) { - Bookmark const * bm = GetBookmark(i); + const size_t ix = GetBookmarksCount() - i - 1; + Bookmark const * bm = GetBookmark(ix); s << " \n"; s << " "; SaveStringWithCDATA(s, bm->GetName());