Commit b3d7fa6a authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_frame_faces): Don't look at selected_frame unless it is an X frame.

parent b56eb7c9
...@@ -471,15 +471,16 @@ init_frame_faces (f) ...@@ -471,15 +471,16 @@ init_frame_faces (f)
/* Make sure that all faces valid on the selected frame are also valid /* Make sure that all faces valid on the selected frame are also valid
on this new frame. */ on this new frame. */
{ if (FRAME_X_P (selected_frame))
int i; {
int n_faces = selected_frame->display.x->n_faces; int i;
struct face **faces = selected_frame->display.x->faces; int n_faces = selected_frame->display.x->n_faces;
struct face **faces = selected_frame->display.x->faces;
for (i = 2; i < n_faces; i++) for (i = 2; i < n_faces; i++)
if (faces[i]) if (faces[i])
ensure_face_ready (f, i); ensure_face_ready (f, i);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment