diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-06 03:19:30 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-11-06 03:19:30 +0000 |
commit | 8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad (patch) | |
tree | a29f3a7fa8332969c288c57b7e57d6b9c7151b62 /image.c | |
parent | add TODO (diff) | |
download | w3m-8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad.tar.gz w3m-8503b2be4e94c8d0ca8718c3cc1b1fd1ff8789ad.zip |
[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>
Diffstat (limited to 'image.c')
-rw-r--r-- | image.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; } |