forked from organicmaps/organicmaps
[editor] Correctly reset new features in case of “shared” EditedMapObjects.
This commit is contained in:
parent
07599a8ac6
commit
d635a96b4c
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue