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:
authortatiana-yan <tatiana.kondakova@gmail.com>2019-06-03 18:15:25 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-06-03 18:33:08 +0300
commit2016710b9ee718304774a03ecef17909ccc3fa59 (patch)
tree6b25090c400588f7618d0a8a82a133e274f48353 /indexer
parente2dd32a241a4cafc789cddc24386e6dcf648719a (diff)
[indexer] Do not reset geometry for features created from MapObjects.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/feature.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/feature.cpp b/indexer/feature.cpp
index 5e48ddfef4..8642d968ef 100644
--- a/indexer/feature.cpp
+++ b/indexer/feature.cpp
@@ -402,6 +402,10 @@ void FeatureType::ParseHeader2()
void FeatureType::ResetGeometry()
{
+ // Do not reset geometry for features created from MapObjects.
+ if (!m_loadInfo)
+ return;
+
m_points.clear();
m_triangles.clear();