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
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2016-09-20 20:24:53 +0300
committerMaxim Pimenov <m@maps.me>2016-09-26 13:20:19 +0300
commitf3be6799ba37fa766dfdd5ec263603ba3cd45006 (patch)
treeffb025f27cdfe2e2a6fcee34ec67ffde3c9a0bc7 /indexer/osm_editor.cpp
parent48bfcabc59ae2f4e68baaeb97add7f4b789d6342 (diff)
Added a test.
Diffstat (limited to 'indexer/osm_editor.cpp')
-rw-r--r--indexer/osm_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/osm_editor.cpp b/indexer/osm_editor.cpp
index e804dee125..e4ffc6169a 100644
--- a/indexer/osm_editor.cpp
+++ b/indexer/osm_editor.cpp
@@ -1054,6 +1054,8 @@ FeatureID Editor::GenerateNewFeatureId(MwmSet::MwmId const & id)
bool Editor::CreatePoint(uint32_t type, m2::PointD const & mercator, MwmSet::MwmId const & id, EditableMapObject & outFeature)
{
ASSERT(id.IsAlive(), ("Please check that feature is created in valid MWM file before calling this method."));
+ ASSERT(id.GetInfo()->m_limitRect.IsPointInside(mercator),
+ ("Attempt to create a feature outside of the MWM's bounding box."));
outFeature.SetMercator(mercator);
outFeature.SetID(GenerateNewFeatureId(id));
outFeature.SetType(type);