From bc1972f0273c069a63de8eee156822f74565f59f Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sun, 23 Dec 2018 09:35:39 +0100 Subject: fix get_filename with locale!=NULL --- src/io/resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/io/resource.cpp b/src/io/resource.cpp index 90b175dc3..96a110098 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -149,8 +149,8 @@ Glib::ustring get_filename(Type type, char const *filename, char const *locale) Glib::ustring result; if(locale != nullptr) { - char *user_locale = _get_path(USER, type, filename); - char *sys_locale = _get_path(SYSTEM, type, filename); + char *user_locale = _get_path(USER, type, locale); + char *sys_locale = _get_path(SYSTEM, type, locale); if (file_test(user_locale, G_FILE_TEST_EXISTS)) { result = Glib::ustring(user_locale); -- cgit v1.2.3