org.el (org-display-outline-path): Fix invalid face reference error

* lisp/org.el (org-display-outline-path): Use an anonymous face when
adding default :height to outline path.
This commit is contained in:
Nicholas Vollmer 2020-10-06 01:30:09 -04:00 committed by Kyle Meyer
parent 9a6689f9ce
commit f0902bf185

View file

@ -8048,7 +8048,7 @@ If JUST-RETURN-STRING is non-nil, return a string, don't display a message."
(and file bfn (concat (file-name-nondirectory bfn) separator))
separator))
(add-face-text-property 0 (length res)
`((t :height ,(face-attribute 'default :height)))
`(:height ,(face-attribute 'default :height))
nil res)
(if just-return-string
res