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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2017-12-26 19:07:05 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-12-27 11:52:34 +0300
commit598acb74d9573aba97deaf0f9a57c0e6b00528e1 (patch)
tree990f4125995c7c6df7a9e37744c9ef831cf633bd /drape_frontend/user_mark_shapes.cpp
parent19b006d9c86f230bdae564eab1d940ceff5d0f49 (diff)
Fixed crash in user marks caching.
Diffstat (limited to 'drape_frontend/user_mark_shapes.cpp')
-rw-r--r--drape_frontend/user_mark_shapes.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp
index 55d37a0e59..ea232ddba3 100644
--- a/drape_frontend/user_mark_shapes.cpp
+++ b/drape_frontend/user_mark_shapes.cpp
@@ -109,7 +109,8 @@ void CacheUserMarks(TileKey const & tileKey, ref_ptr<dp::TextureManager> texture
for (auto const id : marksId)
{
auto const it = renderParams.find(id);
- ASSERT(it != renderParams.end(), ());
+ if (it == renderParams.end())
+ continue;
UserMarkRenderParams & renderInfo = *it->second.get();
if (!renderInfo.m_isVisible)
@@ -339,7 +340,9 @@ void CacheUserLines(TileKey const & tileKey, ref_ptr<dp::TextureManager> texture
for (auto id : linesId)
{
auto const it = renderParams.find(id);
- ASSERT(it != renderParams.end(), ());
+ if (it == renderParams.end())
+ continue;
+
UserLineRenderParams const & renderInfo = *it->second.get();
m2::RectD const tileRect = tileKey.GetGlobalRect();