Skip to content

Commit d997c32

Browse files
committed
Add modern name as fallback
1 parent 59235d6 commit d997c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/StelSkyCultureMgr.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,8 @@ QString StelSkyCultureMgr::createCulturalLabel(const StelObject::CulturalName &c
954954
}
955955
if ((styleInt & int(StelObject::CulturalDisplayStyle::Modern)) && (!commonNameI18n.isEmpty()) && (!label.startsWith(commonNameI18n)) && (commonNameI18n!=cName.translatedI18n))
956956
label.append(QString(" %1%3%2").arg(QChar(0x29FC), QChar(0x29FD), commonNameI18n));
957+
if ((styleInt & int(StelObject::CulturalDisplayStyle::Modern)) && label.isEmpty()) // if something went wrong?
958+
label=commonNameI18n;
957959

958960
return label;
959961
}

0 commit comments

Comments
 (0)