(face-attribute): Handle the case where a face inherits from
a non-existent face.
This commit is contained in:
parent
1b5fd09e69
commit
621e71ee73
1 changed files with 5 additions and 2 deletions
|
@ -374,8 +374,11 @@ completely specified)."
|
|||
;; VALUE is relative, so merge with inherited faces
|
||||
(let ((inh-from (face-attribute face :inherit frame)))
|
||||
(unless (or (null inh-from) (eq inh-from 'unspecified))
|
||||
(setq value
|
||||
(face-attribute-merged-with attribute value inh-from frame)))))
|
||||
(condition-case nil
|
||||
(setq value
|
||||
(face-attribute-merged-with attribute value inh-from frame))
|
||||
;; The `inherit' attribute may point to non existent faces.
|
||||
(error nil)))))
|
||||
(when (and inherit
|
||||
(not (eq inherit t))
|
||||
(face-attribute-relative-p attribute value))
|
||||
|
|
Loading…
Add table
Reference in a new issue