From a53f7f586ba4043ed2631790ceabe0486da3c20f Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Thu, 12 May 2016 16:02:24 +0300 Subject: [editor] Avoid empty changeset comments on partial upload --- editor/changeset_wrapper.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'editor') 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 const & geometry) { m2::RectD rect; @@ -34,9 +36,9 @@ bool OsmFeatureHasTags(pugi::xml_node const & osmFt) return osmFt.child("tag"); } -vector const static kMainTags = {"amenity", "shop", "tourism", "historic", - "craft", "emergency", "barrier", "highway", - "office", "entrance", "building"}; +vector 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() -- cgit v1.2.3