mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08:00
Fix rotation validity test in image.c
* src/image.c (compute_image_rotation): Fix the validity test for :rotation values. This avoids logging error messages when no :rotation was provided in the image spec.
This commit is contained in:
parent
b5de191e87
commit
ecd7d40a3b
1 changed files with 4 additions and 1 deletions
|
|
@ -2065,7 +2065,10 @@ matrix3x3_mult (matrix3x3 a, matrix3x3 b, matrix3x3 result)
|
|||
static void
|
||||
compute_image_rotation (struct image *img, double *rotation)
|
||||
{
|
||||
Lisp_Object value = image_spec_value (img->spec, QCrotation, NULL);
|
||||
bool foundp = false;
|
||||
Lisp_Object value = image_spec_value (img->spec, QCrotation, &foundp);
|
||||
if (!foundp)
|
||||
return;
|
||||
if (! NUMBERP (value))
|
||||
{
|
||||
image_error ("Invalid image `:rotation' parameter");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue