diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 4e5107a5932..64cd4a09015 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -3046,17 +3046,22 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3046 | { | 3046 | { |
| 3047 | if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value)) | 3047 | if (!UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value)) |
| 3048 | { | 3048 | { |
| 3049 | Lisp_Object test; | 3049 | if (EQ (face, Qdefault)) |
| 3050 | 3050 | { | |
| 3051 | test = (EQ (face, Qdefault) | 3051 | /* The default face must have an absolute size. */ |
| 3052 | ? value | 3052 | if (!INTEGERP (value) || XINT (value) <= 0) |
| 3053 | /* The default face must have an absolute size, | 3053 | signal_error ("Invalid default face height", value); |
| 3054 | otherwise, we do a test merge with a random | 3054 | } |
| 3055 | height to see if VALUE's ok. */ | 3055 | else |
| 3056 | : merge_face_heights (value, make_number (10), Qnil)); | 3056 | { |
| 3057 | 3057 | /* For non-default faces, do a test merge with a random | |
| 3058 | if (!INTEGERP (test) || XINT (test) <= 0) | 3058 | height to see if VALUE's ok. */ |
| 3059 | signal_error ("Invalid face height", value); | 3059 | Lisp_Object test = merge_face_heights (value, |
| 3060 | make_number (10), | ||
| 3061 | Qnil); | ||
| 3062 | if (!INTEGERP (test) || XINT (test) <= 0) | ||
| 3063 | signal_error ("Invalid face height", value); | ||
| 3064 | } | ||
| 3060 | } | 3065 | } |
| 3061 | 3066 | ||
| 3062 | old_value = LFACE_HEIGHT (lface); | 3067 | old_value = LFACE_HEIGHT (lface); |