Mercurial > hg > xemacs-beta
diff src/faces.c @ 367:a4f53d9b3154 r21-1-13
Import from CVS: tag r21-1-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:01:07 +0200 |
parents | afd57c14dfc8 |
children | cc15677e0335 |
line wrap: on
line diff
--- a/src/faces.c Mon Aug 13 11:00:13 2007 +0200 +++ b/src/faces.c Mon Aug 13 11:01:07 2007 +0200 @@ -1568,7 +1568,16 @@ findex = get_builtin_face_cache_index (w, Vdefault_face); merge_face_cachel_data (w, findex, &cachel); - return get_merged_face_cache_index (w, &cachel); + findex = get_merged_face_cache_index (w, &cachel); + if (cachel.merged_faces && + /* merged_faces did not get stored and available via return value */ + Dynarr_at (w->face_cachels, findex).merged_faces != + cachel.merged_faces) + { + Dynarr_free (cachel.merged_faces); + cachel.merged_faces = 0; + } + return findex; } }