aboutsummaryrefslogtreecommitdiffstats
path: root/image.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/image.c b/image.c
index dd6e8f3..71a7a47 100644
--- a/image.c
+++ b/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;
}