mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[drape] Don't apply bus reference when there is no main title
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
f443d3a207
commit
d9354e0bd1
@@ -63,7 +63,7 @@ void CaptionDescription::Init(FeatureType & f, int8_t deviceLang, int zoomLevel,
|
|||||||
|
|
||||||
if (ftypes::IsPublicTransportStopChecker::Instance()(feature::TypesHolder(f))) {
|
if (ftypes::IsPublicTransportStopChecker::Instance()(feature::TypesHolder(f))) {
|
||||||
auto const lRef = f.GetMetadata(feature::Metadata::FMD_LOCAL_REF);
|
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_mainText.append(" (").append(lRef).append(")");
|
||||||
m_auxText = lRef;
|
m_auxText = lRef;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user