From 0cf4f52a13161e1ed57ecf4e682d3bb945528cb8 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Thu, 9 Jan 2003 15:30:20 +0000 Subject: [w3m-dev 03619] Re: Error occured while reset * file.c (process_img): check image.ext (HTMLlineproc2body): check image.ext (loadImageBuffer): url, ext is in URLFile * frame.c (unloadFrame): no need to push to fileToDelete (copyFrame): no need to reset FB_TODELETE (resetFrameElement): f_body->source, buf->sourcefile (frame_download_source): buf->source buf->sourcefile reset * frame.h (FB_NOCACHE): deleted (FB_TODELETE): deleted * main.c (vmSrc): Currentbuf->sourcefile need_reshape if images exist From: Hironori SAKAMOTO --- main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 86e46db..af395b7 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.185 2003/01/08 17:24:13 ukai Exp $ */ +/* $Id: main.c,v 1.186 2003/01/09 15:30:48 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -4392,6 +4392,7 @@ vwSrc(void) saveBuffer(Currentbuf, f); fclose(f); fn = tmpf->ptr; + Currentbuf->sourcefile = fn; } else { return; @@ -4441,6 +4442,10 @@ vwSrc(void) Sprintf("HTML view of %s", Currentbuf->buffername)->ptr; buf->linkBuffer[LB_SOURCE] = Currentbuf; Currentbuf->linkBuffer[LB_N_SOURCE] = buf; +#ifdef USE_IMAGE + if (buf->img) + buf->need_reshape = TRUE; +#endif } else { return; -- cgit v1.2.3