From: pinard@iro.umontreal.ca (François Pinard)
Cc: emacs-devel@gnu.org, emacs-pretest-bug@gnu.org
Subject: Re: Crash on loading image
Date: 14 Feb 2002 21:14:29 -0500 [thread overview]
Message-ID: <oqd6z74hkq.fsf@carouge.sram.qc.ca> (raw)
In-Reply-To: <m3adumirfr.fsf@Janik.cz>
[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]
[Pavel Janík]
> can you please test this? I will provide ChangeLog entry later.
> Too tired right now...
> --- xfns.c.~1.537.~ Tue Jan 22 16:16:44 2002
> +++ xfns.c Wed Feb 6 15:49:29 2002
> @@ -10161,8 +10161,8 @@
> return 0;
> }
>
> - width = img->width = gif->SWidth;
> - height = img->height = gif->SHeight;
> + width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width);
> + height = img->height = max(gif->SHeight, gif->Image.Top + gif->Image.Height);
>
> /* Create the X image and pixmap. */
> if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))
Pavel, I just installed 21.1.90 without the patch above, and Emacs vanishes
whenever I open any of the two images you provided in your reply. I then
installed the said patch over 21.1.90, and the image is now opened correctly
in both cases. So the patch does repair something :-). Congratulations!
I'm merely repeating the remainder of your comments for the other readers:
> This will be needed in RC and in HEAD. I'm CCing emacs-devel because
> we need to get more testing for this. If you would like to know why to
> test this, just try the above recipe with attached pictures. I have
> tested this on a package of about 1400 pictures and only one of them
> (attached opensign.gif) had the same problem (we used Screen Width of GIF,
> but it was to small) and thus we crashed.
[-- Attachment #2: Type: text/plain, Size: 59 bytes --]
--
François Pinard http://www.iro.umontreal.ca/~pinard
next parent reply other threads:[~2002-02-15 2:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <oqadunsxni.fsf@carouge.sram.qc.ca>
[not found] ` <m3adumirfr.fsf@Janik.cz>
2002-02-15 2:14 ` François Pinard [this message]
2002-02-16 10:37 ` Crash on loading image Pavel Janík
2002-02-17 9:02 ` Eli Zaretskii
2002-02-17 17:42 ` François Pinard
2002-02-20 10:27 ` Pavel Janík
2002-02-20 15:19 ` François Pinard
2002-02-20 20:02 ` Jason Rumney
2002-02-23 13:40 ` Pavel Janík
2002-02-23 14:01 ` Jason Rumney
[not found] ` <200202222346.g1MNk5q14177@aztec.santafe.edu>
2002-02-23 9:39 ` Pavel Janík
2002-02-23 19:18 ` Kim F. Storm
2002-02-24 17:57 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=oqd6z74hkq.fsf@carouge.sram.qc.ca \
--to=pinard@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.