[w3m-dev 03375] NULL check of CurrentTab
* display.c (disp_message_nsec): check CurrentTab * file.c (doExternal): check CurrentTab * image.c (loadImage): check CurrentTab From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
8
image.c
8
image.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: image.c,v 1.12 2002/11/05 17:10:05 ukai Exp $ */
|
||||
/* $Id: image.c,v 1.13 2002/11/06 03:19:31 ukai Exp $ */
|
||||
|
||||
#include "fm.h"
|
||||
#include <sys/types.h>
|
||||
@@ -431,7 +431,7 @@ loadImage(int flag)
|
||||
if (!stat(cache->file, &st)) {
|
||||
cache->loaded = IMG_FLAG_LOADED;
|
||||
if (getImageSize(cache)) {
|
||||
if (flag == IMG_FLAG_NEXT && Currentbuf)
|
||||
if (flag == IMG_FLAG_NEXT && CurrentTab && Currentbuf)
|
||||
Currentbuf->need_reshape = TRUE;
|
||||
}
|
||||
draw = TRUE;
|
||||
@@ -443,7 +443,7 @@ loadImage(int flag)
|
||||
}
|
||||
if (flag == IMG_FLAG_NEXT && draw)
|
||||
drawImage();
|
||||
if (Currentbuf)
|
||||
if (CurrentTab && Currentbuf)
|
||||
showImageProgress(Currentbuf);
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ loadImage(int flag)
|
||||
}
|
||||
image_list = NULL;
|
||||
image_file = NULL;
|
||||
if (Currentbuf)
|
||||
if (CurrentTab && Currentbuf)
|
||||
displayBuffer(Currentbuf, B_NORMAL);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user