diff options
author | vng <viktor.govako@gmail.com> | 2013-10-10 21:10:09 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:04:16 +0300 |
commit | dabbd775ca1fb49c992c19c15c9161b38fdcd3c2 (patch) | |
tree | e48b2e953ed65bd3417850cf61f47f6715741398 /map/bookmark.cpp | |
parent | 185538d258aa6a954149657dd3fbd9f27eb4345d (diff) |
Recreate track's display list only when scale changed.
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index 619c621d70..bb2ab1f369 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -552,8 +552,8 @@ void BookmarkCategory::SaveToKML(ostream & s) s << " <LineString><coordinates>"; Track::PolylineD const & poly = track->GetPolyline(); - for (size_t pt = 0; pt < poly.m_points.size(); ++pt) - s << PointToString(poly.m_points[pt]) << " "; + for (Track::PolylineD::IterT pt = poly.Begin(); pt != poly.End(); ++pt) + s << PointToString(*pt) << " "; s << " </coordinates></LineString>\n" << " </Placemark>\n"; |