From d9354e0bd1cc3b243c2ae1c7c6272879f4499c54 Mon Sep 17 00:00:00 2001 From: Yannik Bloscheck Date: Thu, 30 Oct 2025 17:55:39 +0100 Subject: [PATCH] [drape] Don't apply bus reference when there is no main title Signed-off-by: Yannik Bloscheck --- libs/drape_frontend/stylist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/drape_frontend/stylist.cpp b/libs/drape_frontend/stylist.cpp index 9ee188537..3c3979d34 100644 --- a/libs/drape_frontend/stylist.cpp +++ b/libs/drape_frontend/stylist.cpp @@ -63,7 +63,7 @@ void CaptionDescription::Init(FeatureType & f, int8_t deviceLang, int zoomLevel, if (ftypes::IsPublicTransportStopChecker::Instance()(feature::TypesHolder(f))) { auto const lRef = f.GetMetadata(feature::Metadata::FMD_LOCAL_REF); - if (!lRef.empty()) { + if (!m_mainText.empty() && !lRef.empty()) { //m_mainText.append(" (").append(lRef).append(")"); m_auxText = lRef; }