diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/viewer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 519c8a23dc..271ca37630 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -2186,8 +2186,12 @@ read_end: | |||
2186 | /* load prefs font if it is different than the global settings font */ | 2186 | /* load prefs font if it is different than the global settings font */ |
2187 | if (rb->strcmp(prefs.font, rb->global_settings->font_file)) { | 2187 | if (rb->strcmp(prefs.font, rb->global_settings->font_file)) { |
2188 | if (!change_font(prefs.font)) { | 2188 | if (!change_font(prefs.font)) { |
2189 | /* fallback by re-loading the global settings font */ | 2189 | /* fallback by resetting prefs font to the global settings font */ |
2190 | if (!change_font(rb->global_settings->font_file)) | 2190 | rb->memset(prefs.font, 0, MAX_PATH); |
2191 | rb->snprintf(prefs.font, MAX_PATH, "%s", | ||
2192 | rb->global_settings->font_file); | ||
2193 | |||
2194 | if (!change_font(prefs.font)) | ||
2191 | return false; | 2195 | return false; |
2192 | } | 2196 | } |
2193 | } | 2197 | } |