diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-08-07 19:02:53 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:59 +0300 |
commit | 274174fed60a75cd57efd526c2eb09d74aa0f86e (patch) | |
tree | 9f591dcbeac9d77bc598835438b5ece1699190ec /map/framework.cpp | |
parent | 26e4f5df8666e11f522e396d7ade7162237a25d9 (diff) |
Fixed crash in new route rendering on Android
Diffstat (limited to 'map/framework.cpp')
-rw-r--r-- | map/framework.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index d8cad58503..707f884189 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -659,7 +659,6 @@ bool Framework::AddBookmarksFile(string const & filePath) void Framework::PrepareToShutdown() { #ifndef USE_DRAPE - m_bmManager.PrepareToShutdown(); SetRenderPolicy(0); #else m_drapeEngine.Destroy(); @@ -1525,6 +1524,9 @@ bool Framework::GetDistanceAndAzimut(m2::PointD const & point, #ifndef USE_DRAPE void Framework::SetRenderPolicy(RenderPolicy * renderPolicy) { + if (renderPolicy == nullptr) + m_bmManager.PrepareToShutdown(); + m_bmManager.ResetScreen(); m_guiController->ResetRenderParams(); m_renderPolicy.reset(); |