From a826c4422f823ec1bbd1902f05c549f94b75c8e1 Mon Sep 17 00:00:00 2001 From: eriktorbjorn Date: Tue, 7 Jun 2011 06:21:04 +0200 Subject: JANITORIAL: Unbreak building with --disable-translation I don't know if there is more code that can be removed when disabling translations, but this is the obvious obstacle. --- graphics/fontman.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics') diff --git a/graphics/fontman.cpp b/graphics/fontman.cpp index 6f1d282d54..f40cf97602 100644 --- a/graphics/fontman.cpp +++ b/graphics/fontman.cpp @@ -117,11 +117,13 @@ const Font *FontManager::getFontByUsage(FontUsage usage) const { if (font) return font; } +#ifdef USE_TRANSLATION // Accept any other font that has the charset in its name for (Common::HashMap::const_iterator it = _fontMap.begin() ; it != _fontMap.end() ; ++it) { if (it->_key.contains(TransMan.getCurrentCharset())) return it->_value; } +#endif // Fallback: return a non localized kGUIFont. // Maybe we should return a null pointer instead? return g_sysfont; -- cgit v1.2.3