[editor] Correctly reset new features in case of “shared” EditedMapObjects.

This commit is contained in:
Alex Zolotarev 2016-03-15 17:36:26 +03:00 committed by Sergey Yershov
parent 07599a8ac6
commit d635a96b4c

View file

@ -756,6 +756,7 @@ FeatureID Editor::GenerateNewFeatureId(MwmSet::MwmId const & id)
bool Editor::CreatePoint(uint32_t type, m2::PointD const & mercator, MwmSet::MwmId const & id, EditableMapObject & outFeature)
{
outFeature = {};
ASSERT(id.IsAlive(), ("Please check that feature is created in valid MWM file before calling this method."));
outFeature.SetMercator(mercator);
outFeature.SetID(GenerateNewFeatureId(id));