diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-05-12 16:02:24 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-05-12 16:02:24 +0300 |
commit | a53f7f586ba4043ed2631790ceabe0486da3c20f (patch) | |
tree | 5fe5458d3221f81f74759fb1a30618fb0e7dd6a2 /editor | |
parent | 6e8b2aab5a674648829708a5aa1d1c216ae906e6 (diff) |
[editor] Avoid empty changeset comments on partial upload
Diffstat (limited to 'editor')
-rw-r--r-- | editor/changeset_wrapper.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/changeset_wrapper.cpp b/editor/changeset_wrapper.cpp index 467d3dd6d6..8e6f712301 100644 --- a/editor/changeset_wrapper.cpp +++ b/editor/changeset_wrapper.cpp @@ -18,6 +18,8 @@ using editor::XMLFeature; namespace { +constexpr char const * kInitialChangesetComment = "Edits via MAPS.ME app, a partial upload"; + m2::RectD GetBoundingRect(vector<m2::PointD> const & geometry) { m2::RectD rect; @@ -34,9 +36,9 @@ bool OsmFeatureHasTags(pugi::xml_node const & osmFt) return osmFt.child("tag"); } -vector<string> const static kMainTags = {"amenity", "shop", "tourism", "historic", - "craft", "emergency", "barrier", "highway", - "office", "entrance", "building"}; +vector<string> const static kMainTags = { + "amenity", "shop", "tourism", "historic", "craft", "emergency", "barrier", "highway", + "office", "leisure", "waterway", "natural", "place", "entrance", "building", "name"}; string GetTypeForFeature(XMLFeature const & node) { @@ -101,6 +103,7 @@ ChangesetWrapper::ChangesetWrapper(TKeySecret const & keySecret, : m_changesetComments(comments), m_api(OsmOAuth::ServerAuth(keySecret)) { + m_changesetComments["comment"] = kInitialChangesetComment; } ChangesetWrapper::~ChangesetWrapper() |