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:
authorAlex Zolotarev <alex@maps.me>2016-03-29 13:04:26 +0300
committerAlex Zolotarev <alex@maps.me>2016-03-29 19:22:39 +0300
commite4a7e652bb5f7482c8f22cc62c42128089b7fba3 (patch)
tree961a7444ab68698ef6b21417176e61aa35792642 /editor
parent784231c291b094b4b6abb9efa4fe31a84d9108aa (diff)
[editor] Do not overwrite OSM type when feature is modified (not created by user).
Diffstat (limited to 'editor')
-rw-r--r--editor/xml_feature.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/xml_feature.hpp b/editor/xml_feature.hpp
index 720ed81e68..5b1c54d99e 100644
--- a/editor/xml_feature.hpp
+++ b/editor/xml_feature.hpp
@@ -48,6 +48,8 @@ public:
XMLFeature(pugi::xml_document const & xml);
XMLFeature(pugi::xml_node const & xml);
XMLFeature(XMLFeature const & feature);
+ // TODO: It should make "deep" compare instead of converting to strings.
+ // Strings comparison does not work if tags order is different but tags are equal.
bool operator==(XMLFeature const & other) const;
/// @returns nodes and ways from osmXml. Vector can be empty.
static vector<XMLFeature> FromOSM(string const & osmXml);