diff options
Diffstat (limited to 'source/blender/blenfont/intern')
-rw-r--r-- | source/blender/blenfont/intern/blf_dir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenfont/intern/blf_dir.c b/source/blender/blenfont/intern/blf_dir.c index 721e86fbf21..da4d0b77a73 100644 --- a/source/blender/blenfont/intern/blf_dir.c +++ b/source/blender/blenfont/intern/blf_dir.c @@ -199,14 +199,14 @@ char *blf_dir_metrics_search(const char *filename) s[2] = 'm'; /* first check .afm */ - if (BLI_exists(s)) - return s; + if (BLI_exists(mfile)) + return mfile; /* and now check .pfm */ s[0] = 'p'; - if (BLI_exists(s)) - return s; + if (BLI_exists(mfile)) + return mfile; } MEM_freeN(mfile); return NULL; |