diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/fontmanager/fontconfig.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/generic/fontmanager/fontconfig.cxx b/vcl/generic/fontmanager/fontconfig.cxx index f5fe7d8d2c4d..86c4ff53e956 100644 --- a/vcl/generic/fontmanager/fontconfig.cxx +++ b/vcl/generic/fontmanager/fontconfig.cxx @@ -382,7 +382,8 @@ FcResult FontCfgWrapper::LocalizedElementFromPattern(FcPattern* pPattern, FcChar //possible to-do, sort by UILocale instead of process locale rtl_Locale* pLoc = NULL; osl_getProcessLocale(&pLoc); - localizedsorter aSorter( *pLoc); + LanguageTag aTag(*pLoc); + localizedsorter aSorter(aTag); *element = aSorter.bestname(lang_and_elements); //if this element is a fontname, map the other names to this best-name |