Mercurial > emacs
changeset 29394:84489c72fb8e
(realize_x_face): When copying BASE_FACE bitwise to the
result face, set flags in the face indicating that colors may not
be freed.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 02 Jun 2000 19:03:58 +0000 |
parents | 3ad9354ade23 |
children | 92e31619249c |
files | src/xfaces.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfaces.c Fri Jun 02 19:03:31 2000 +0000 +++ b/src/xfaces.c Fri Jun 02 19:03:58 2000 +0000 @@ -5859,7 +5859,17 @@ { bcopy (base_face, face, sizeof *face); face->gc = 0; - face->font = NULL; /* to force realize_face to load font */ + + /* Don't try to free the colors copied bitwise from BASE_FACE. */ + face->foreground_defaulted_p = 1; + face->background_defaulted_p = 1; + face->underline_defaulted_p = 1; + face->overline_color_defaulted_p = 1; + face->strike_through_color_defaulted_p = 1; + face->box_color_defaulted_p = 1; + + /* to force realize_face to load font */ + face->font = NULL; return face; }