Fixed order in which bookmarks are stored to KML file.

This commit is contained in:
Yuri Gorshenin 2015-02-03 15:48:34 +03:00 committed by Alex Zolotarev
parent 568222e411
commit 35b6cf169d

View file

@ -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 << " <Placemark>\n";
s << " <name>";
SaveStringWithCDATA(s, bm->GetName());