aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-01 19:23:38 +0000
committerRichard M. Stallman1993-06-01 19:23:38 +0000
commitb3d7fa6aabc00d9c2dc140543f8e3dcca638fee4 (patch)
treef4a832a66eb9fb1f6030a2b0d4fbd51ee041546e
parentb56eb7c9d5f389701748fc198026b63bd2628975 (diff)
downloademacs-b3d7fa6aabc00d9c2dc140543f8e3dcca638fee4.tar.gz
emacs-b3d7fa6aabc00d9c2dc140543f8e3dcca638fee4.zip
(init_frame_faces): Don't look at selected_frame unless it is an X frame.
-rw-r--r--src/xfaces.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index c07bf035f5b..e7aff5826c6 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -471,15 +471,16 @@ init_frame_faces (f)
471 471
472 /* Make sure that all faces valid on the selected frame are also valid 472 /* Make sure that all faces valid on the selected frame are also valid
473 on this new frame. */ 473 on this new frame. */
474 { 474 if (FRAME_X_P (selected_frame))
475 int i; 475 {
476 int n_faces = selected_frame->display.x->n_faces; 476 int i;
477 struct face **faces = selected_frame->display.x->faces; 477 int n_faces = selected_frame->display.x->n_faces;
478 struct face **faces = selected_frame->display.x->faces;
478 479
479 for (i = 2; i < n_faces; i++) 480 for (i = 2; i < n_faces; i++)
480 if (faces[i]) 481 if (faces[i])
481 ensure_face_ready (f, i); 482 ensure_face_ready (f, i);
482 } 483 }
483} 484}
484 485
485 486