diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index aa3041d6910..196abe11dd7 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -3356,12 +3356,16 @@ FRAME 0 means change the face on all frames, and change the default | |||
| 3356 | signal_error ("Invalid face attribute name", attr); | 3356 | signal_error ("Invalid face attribute name", attr); |
| 3357 | 3357 | ||
| 3358 | if (prop_index) | 3358 | if (prop_index) |
| 3359 | /* If a font-related attribute other than QCfont and QCfontset is | 3359 | { |
| 3360 | specified, and if the original QCfont attribute has a font | 3360 | /* If a font-related attribute other than QCfont and QCfontset |
| 3361 | (font-spec or font-object), set the corresponding property in | 3361 | is specified, and if the original QCfont attribute has a font |
| 3362 | the font to nil so that the font selector doesn't think that | 3362 | (font-spec or font-object), set the corresponding property in |
| 3363 | the attribute is mandatory. */ | 3363 | the font to nil so that the font selector doesn't think that |
| 3364 | font_clear_prop (XVECTOR (lface)->contents, prop_index); | 3364 | the attribute is mandatory. Also, clear the average |
| 3365 | width. */ | ||
| 3366 | font_clear_prop (XVECTOR (lface)->contents, prop_index); | ||
| 3367 | font_clear_prop (XVECTOR (lface)->contents, FONT_AVGWIDTH_INDEX); | ||
| 3368 | } | ||
| 3365 | 3369 | ||
| 3366 | /* Changing a named face means that all realized faces depending on | 3370 | /* Changing a named face means that all realized faces depending on |
| 3367 | that face are invalid. Since we cannot tell which realized faces | 3371 | that face are invalid. Since we cannot tell which realized faces |