# HG changeset patch # User Gerd Moellmann # Date 1004526625 0 # Node ID dfc4450c232971225925812f33806a81194a0092 # Parent 766b5428db527004cf22b3eccd2a6aaf06f2a8de (realize_x_face): If C is not a single-byte character, set the face's colors_copied_bitwise_p instead of the defaulted_p members which have a different meaning. (free_face_colors): Do nothing for a face whose colors have been copied bitwise. diff -r 766b5428db52 -r dfc4450c2329 src/xfaces.c --- a/src/xfaces.c Wed Oct 31 11:06:47 2001 +0000 +++ b/src/xfaces.c Wed Oct 31 11:10:25 2001 +0000 @@ -1664,6 +1664,9 @@ struct face *face; { #ifdef HAVE_X_WINDOWS + if (face->colors_copied_bitwise_p) + return; + BLOCK_INPUT; if (!face->foreground_defaulted_p) @@ -6350,12 +6353,7 @@ face->gc = 0; /* 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; + face->colors_copied_bitwise_p = 1; /* to force realize_face to load font */ face->font = NULL;