diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-07-02 04:23:45 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-07-02 04:23:45 +0000 |
commit | f9afd40286ac612a59b6a7a1b5e4341dc5f0ba35 (patch) | |
tree | c37bcbfe06a091593f6b9cdf59f517329cb1fe9a /src/xfaces.c | |
parent | ed947cae614cf6f4bd1c572a65f2560da62affb2 (diff) | |
download | emacs-f9afd40286ac612a59b6a7a1b5e4341dc5f0ba35.tar.gz |
(get_cached_face): Set the cached_index field.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index b2e2cc2d0d9..e147fb0c05b 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -248,7 +248,10 @@ get_cached_face (f, face) for (i = 0; i < nfaces; i++) { if (face_eql (face_vector[i], face)) - return face_vector[i]; + { + face->cached_index = i; + return face_vector[i]; + } if (face_vector[i] == 0) empty = i; } @@ -273,6 +276,7 @@ get_cached_face (f, face) /* Make a graphics context for it. */ build_face (f, result); + face->cached_index = empty; return result; } |