emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A redisplay bug in 22.0.99?


From: Glenn Morris
Subject: Re: A redisplay bug in 22.0.99?
Date: Fri, 11 May 2007 18:37:05 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

James Cloos wrote:

>>>>>> "Andreas" == Andreas Schwab <address@hidden> writes:
>
> Andreas> The problem appears to be that this is actually a PGM.
>
> I thought that was the (entirety) of the problem as well, but simply
> renameing the file to cancel.pgm does not let emacs display it
> correctly.


Perhaps something like this.


*** image.c     18 Mar 2007 23:09:57 -0000      1.65
--- image.c     11 May 2007 22:37:36 -0000
***************
*** 5742,5750 ****
      }
    else
      {
!       if (raw_p && (p + 3 * height * width > end))
        {
          x_destroy_x_image (ximg);
          image_error ("Invalid image size in image `%s'",
                       img->spec, Qnil);
          goto error;
--- 5742,5751 ----
      }
    else
      {
!       if (raw_p && (p + (type == PBM_GRAY ? 1 : 3) * height * width > end))
        {
          x_destroy_x_image (ximg);
+         x_clear_image (f, img);
          image_error ("Invalid image size in image `%s'",
                       img->spec, Qnil);
          goto error;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]