From 3d00128158a5684b2118fdef31f97f946a2c397f Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Tue, 27 Nov 2018 20:54:51 +0300 Subject: [PATCH] Fixed crash with empty title of SpeedCameraMark. --- map/routing_mark.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/map/routing_mark.cpp b/map/routing_mark.cpp index cc974a85c4..9e245a77c9 100644 --- a/map/routing_mark.cpp +++ b/map/routing_mark.cpp @@ -581,6 +581,8 @@ drape_ptr SpeedCameraMark::GetTitleDecl() const drape_ptr SpeedCameraMark::GetColoredSymbols() const { + if (m_titleDecl.m_primaryText.empty()) + return nullptr; return make_unique_dp(m_textBg); }