From 22edd1631025dd50bba2b9cd1e0c75baf8d36a0f Mon Sep 17 00:00:00 2001 From: ExMix Date: Mon, 6 Jul 2015 14:25:41 +0300 Subject: [drape] invalidate rect, after delete, download or update map. --- indexer/index.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indexer') 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(); if (pValue) -- cgit v1.2.3