From bf4e2970a787fc2c7a7478cf577107cde47e6f23 Mon Sep 17 00:00:00 2001 From: ExMix Date: Tue, 5 Nov 2013 14:29:02 +0300 Subject: [PATCH] [drape]Review fix. Handle scale changing. --- drape_frontend/backend_renderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drape_frontend/backend_renderer.cpp b/drape_frontend/backend_renderer.cpp index 31283d5bca..17c78e81b1 100644 --- a/drape_frontend/backend_renderer.cpp +++ b/drape_frontend/backend_renderer.cpp @@ -101,7 +101,8 @@ namespace df vector tiles; m_tiler.tiles(tiles, 1); - if (!m_currentViewport.GlobalRect().IsIntersect(screen.GlobalRect())) + if (!m_currentViewport.GlobalRect().IsIntersect(screen.GlobalRect()) + || screen.GetScale() != m_currentViewport.GetScale()) { typedef set::iterator index_iter; for (index_iter it = m_taskIndex.begin(); it != m_taskIndex.end(); ++it)