ソースを参照

Fixed segfault caused by image removal in thumbnail mode

master
Bert Münnich 10年前
コミット
52e56c8924
2個のファイルの変更2行の追加2行の削除
  1. +1
    -1
      Makefile
  2. +1
    -1
      main.c

+ 1
- 1
Makefile ファイルの表示

@@ -1,4 +1,4 @@
VERSION = git-20140901
VERSION = git-20140911

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 1
- 1
main.c ファイルの表示

@@ -187,7 +187,7 @@ void remove_file(int n, bool manual)
filecnt--;
if (n < tns.cnt)
tns.cnt--;
if (mode == MODE_THUMB && fileidx >= tns.cnt)
if (mode == MODE_THUMB && tns.cnt > 0 && fileidx >= tns.cnt)
fileidx = tns.cnt - 1;
if (n < alternate)
alternate--;


||||||
x
 
000:0
読み込み中…
キャンセル
保存