summaryrefslogtreecommitdiffstats
path: root/src/io/resource.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-12-23 08:35:39 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-12-23 08:35:39 +0000
commitbc1972f0273c069a63de8eee156822f74565f59f (patch)
tree83b1e8bc16948135f26b608f9941b13c1c920337 /src/io/resource.cpp
parentFix create first selector (diff)
downloadinkscape-bc1972f0273c069a63de8eee156822f74565f59f.tar.gz
inkscape-bc1972f0273c069a63de8eee156822f74565f59f.zip
fix get_filename with locale!=NULL
Diffstat (limited to 'src/io/resource.cpp')
-rw-r--r--src/io/resource.cpp4
1 files changed, 2 insertions, 2 deletions
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);