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:
authorExMix <rahuba.youri@mapswithme.com>2015-07-06 14:25:41 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:09:29 +0300
commit22edd1631025dd50bba2b9cd1e0c75baf8d36a0f (patch)
tree12ce0e2ab619d03e9b00c01421e61d6df9c0923e /indexer
parent3d6b3cde35b48eeb84e6d217027d3c6a7c6d398d (diff)
[drape] invalidate rect, after delete, download or update map.
Diffstat (limited to 'indexer')
-rw-r--r--indexer/index.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indexer/index.hpp b/indexer/index.hpp
index 02ab500383..dafe1bca85 100644
--- a/indexer/index.hpp
+++ b/indexer/index.hpp
@@ -255,6 +255,15 @@ private:
ASSERT_LESS(index, features.size(), ());
size_t result = index;
MwmId id = features[index].m_mwmId;
+
+ if (!id.IsAlive())
+ {
+ while (features[result].m_mwmId == id)
+ ++result;
+
+ return result;
+ }
+
MwmHandle const handle = GetMwmHandleById(id);
MwmValue const * pValue = handle.GetValue<MwmValue>();
if (pValue)