diff options
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index ca9651ef1dcc..a357c7896f7c 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -1156,10 +1156,11 @@ void PrintFontManager::analyzeTrueTypeFamilyName( void* pTTFont, ::std::list< OU } else if (pNameRecords[i].platformID == 1) { - LanguageTag aApple(makeLanguageTagFromAppleLanguageId(pNameRecords[i].languageID)); + AppleLanguageId aAppleId = static_cast<AppleLanguageId>(pNameRecords[i].languageID); + LanguageTag aApple(makeLanguageTagFromAppleLanguageId(aAppleId)); if (aApple == aSystem) nMatch = 8000; - else if (pNameRecords[i].languageID == APPLE_LANG_ENGLISH) + else if (aAppleId == AppleLanguageId::ENGLISH) nMatch = 2000; else nMatch = 1000; |