Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2016-05-12 16:02:24 +0300
committerIlya Zverev <zverik@textual.ru>2016-05-12 16:02:24 +0300
commita53f7f586ba4043ed2631790ceabe0486da3c20f (patch)
tree5fe5458d3221f81f74759fb1a30618fb0e7dd6a2 /editor
parent6e8b2aab5a674648829708a5aa1d1c216ae906e6 (diff)
[editor] Avoid empty changeset comments on partial upload
Diffstat (limited to 'editor')
-rw-r--r--editor/changeset_wrapper.cpp9
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()