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:
authorAlex Zolotarev <alex@maps.me>2016-01-16 20:05:06 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:14:12 +0300
commitdaef6c4a39a646f8326169502147956aab4a32e8 (patch)
tree372dcb8d218f75d5341b4d5e7162813229b9ce18 /indexer/index.cpp
parent199189a68b4d78cb0d21cd6c1c884651165f8a2b (diff)
[editor] Avoid unmodified features loading loop.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r--indexer/index.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp
index 79f7f63398..57852d456e 100644
--- a/indexer/index.cpp
+++ b/indexer/index.cpp
@@ -128,3 +128,10 @@ void Index::FeaturesLoaderGuard::GetFeatureByIndex(uint32_t index, FeatureType &
ft.SetID(FeatureID(id, index));
}
}
+
+void Index::FeaturesLoaderGuard::GetNotEditedFeatureByIndex(uint32_t index, FeatureType & ft) const
+{
+ MwmId const & id = m_handle.GetId();
+ m_vector.GetByIndex(index, ft);
+ ft.SetID(FeatureID(id, index));
+}