diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-07-06 14:25:41 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:09:29 +0300 |
commit | 22edd1631025dd50bba2b9cd1e0c75baf8d36a0f (patch) | |
tree | 12ce0e2ab619d03e9b00c01421e61d6df9c0923e /indexer/index.hpp | |
parent | 3d6b3cde35b48eeb84e6d217027d3c6a7c6d398d (diff) |
[drape] invalidate rect, after delete, download or update map.
Diffstat (limited to 'indexer/index.hpp')
-rw-r--r-- | indexer/index.hpp | 9 |
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) |