diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_bookmark.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_bookmark.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/plugins/text_viewer/tv_bookmark.c b/apps/plugins/text_viewer/tv_bookmark.c index d569ed8d11..7e38d766ec 100644 --- a/apps/plugins/text_viewer/tv_bookmark.c +++ b/apps/plugins/text_viewer/tv_bookmark.c | |||
@@ -98,15 +98,16 @@ static int tv_find_bookmark(const struct tv_screen_pos *pos) | |||
98 | return -1; | 98 | return -1; |
99 | } | 99 | } |
100 | 100 | ||
101 | static void tv_change_preferences(const struct tv_preferences *oldp) | 101 | static int tv_change_preferences(const struct tv_preferences *oldp) |
102 | { | 102 | { |
103 | int i; | 103 | int i; |
104 | 104 | ||
105 | if (oldp == NULL) | 105 | if (oldp) |
106 | return; | 106 | { |
107 | 107 | for (i = 0; i < bookmark_count; i++) | |
108 | for (i = 0; i < bookmark_count; i++) | 108 | tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos); |
109 | tv_convert_fpos(bookmarks[i].pos.file_pos, &bookmarks[i].pos); | 109 | } |
110 | return TV_CALLBACK_OK; | ||
110 | } | 111 | } |
111 | 112 | ||
112 | void tv_init_bookmark(void) | 113 | void tv_init_bookmark(void) |