diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c index bbf25b4d58f..f3d6508f460 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2385,18 +2385,18 @@ lookup_image (struct frame *f, Lisp_Object spec) | |||
| 2385 | #endif | 2385 | #endif |
| 2386 | 2386 | ||
| 2387 | ascent = image_spec_value (spec, QCascent, NULL); | 2387 | ascent = image_spec_value (spec, QCascent, NULL); |
| 2388 | if (RANGED_FIXNUMP (0, ascent, INT_MAX)) | 2388 | if (FIXNUMP (ascent)) |
| 2389 | img->ascent = XFIXNAT (ascent); | 2389 | img->ascent = XFIXNUM (ascent); |
| 2390 | else if (EQ (ascent, Qcenter)) | 2390 | else if (EQ (ascent, Qcenter)) |
| 2391 | img->ascent = CENTERED_IMAGE_ASCENT; | 2391 | img->ascent = CENTERED_IMAGE_ASCENT; |
| 2392 | 2392 | ||
| 2393 | margin = image_spec_value (spec, QCmargin, NULL); | 2393 | margin = image_spec_value (spec, QCmargin, NULL); |
| 2394 | if (RANGED_FIXNUMP (0, margin, INT_MAX)) | 2394 | if (FIXNUMP (margin)) |
| 2395 | img->vmargin = img->hmargin = XFIXNAT (margin); | 2395 | img->vmargin = img->hmargin = XFIXNUM (margin); |
| 2396 | else if (CONSP (margin)) | 2396 | else if (CONSP (margin)) |
| 2397 | { | 2397 | { |
| 2398 | img->hmargin = XFIXNAT (XCAR (margin)); | 2398 | img->hmargin = XFIXNUM (XCAR (margin)); |
| 2399 | img->vmargin = XFIXNAT (XCDR (margin)); | 2399 | img->vmargin = XFIXNUM (XCDR (margin)); |
| 2400 | } | 2400 | } |
| 2401 | 2401 | ||
| 2402 | relief = image_spec_value (spec, QCrelief, NULL); | 2402 | relief = image_spec_value (spec, QCrelief, NULL); |