Fix wrong enum type assignment.

This commit is contained in:
Sergey Magidovich 2015-12-25 14:25:29 +03:00 committed by Sergey Yershov
parent be45f80027
commit b1df4211da

View file

@ -425,9 +425,7 @@ vector<Metadata::EType> Editor::EditableMetadataForType(FeatureType const & feat
TTypes types;
feature.ForEachType([&types](uint32_t type) { types.push_back(type); });
// TODO(mgsergio): Only one-typed features are now supported.
if (types.size() != 1 ||
feature.GetFeatureType() != feature::HEADER_GEOM_POINT ||
feature.GetFeatureType() != feature::HEADER_GEOM_POINT_EX)
if (types.size() != 1 || feature.GetFeatureType() != feature::GEOM_POINT)
return {};
// Enable opening hours for the first release.