Fix cg_mark_range after removing images from file list

This commit is contained in:
Bert Münnich 2018-06-09 11:55:20 +02:00
parent cc476be7cc
commit 1e5cc7e382
1 changed files with 2 additions and 0 deletions

2
main.c
View File

@ -159,6 +159,8 @@ void remove_file(int n, bool manual)
fileidx--; fileidx--;
if (n < alternate) if (n < alternate)
alternate--; alternate--;
if (n < toggledidx)
toggledidx--;
} }
void set_timeout(timeout_f handler, int time, bool overwrite) void set_timeout(timeout_f handler, int time, bool overwrite)