GNU bug report logs - #33990
27.0.50; image-transform-fit-to-height/-width violates assert

Previous Next

Package: emacs;

Reported by: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>

Date: Sat, 5 Jan 2019 17:27:01 UTC

Severity: normal

Found in version 27.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: 33990 <at> debbugs.gnu.org
Subject: bug#33990: 27.0.50; image-transform-fit-to-height/-width violates assert
Date: Sat, 12 Jan 2019 13:45:50 +0200
> From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
> Cc: 33990 <at> debbugs.gnu.org
> Date: Sun, 06 Jan 2019 10:12:13 +0100
> 
> Eli Zaretskii writes:
> > Please show the error message and the Lisp backtrace from the error,
> > and also the values of the relevant variables.
> 
> Values:
> 
>   size -> (995 . 1068) ; From image-display-size, i.e. the image dimensions 
>   (window-inside-pixel-edges) -> (8 0 933 970)
> 
> And yes, the image is actually higher than the window, it can be
> scrolled.  The original image is rather small, 75x80, and the
> difference, 1068 - 970 -> 98, is about the size of an original pixel
> after transformation, so this looks like a rounding problem.  Maybe the
> code should adjust by one original pixel when it calculates the target
> height in image-transform-properties?

Looks like your analysis is correct, thanks.  Can you propose a patch
that would implement your suggestion?




This bug report was last modified 6 years and 114 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.