changeset 3401:b7024624506c

(init_frame_faces): Don't look at selected_frame unless it is an X frame.
author Richard M. Stallman <rms@gnu.org>
date Tue, 01 Jun 1993 19:23:38 +0000
parents 927c3d8374ef
children 60feb55713b2
files src/xfaces.c
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Tue Jun 01 19:03:52 1993 +0000
+++ b/src/xfaces.c	Tue Jun 01 19:23:38 1993 +0000
@@ -471,15 +471,16 @@
 
   /* Make sure that all faces valid on the selected frame are also valid
      on this new frame.  */
-  {
-    int i;
-    int n_faces = selected_frame->display.x->n_faces;
-    struct face **faces = selected_frame->display.x->faces;
+  if (FRAME_X_P (selected_frame))
+    {
+      int i;
+      int n_faces = selected_frame->display.x->n_faces;
+      struct face **faces = selected_frame->display.x->faces;
 
-    for (i = 2; i < n_faces; i++)
-      if (faces[i])
-	ensure_face_ready (f, i);
-  }
+      for (i = 2; i < n_faces; i++)
+	if (faces[i])
+	  ensure_face_ready (f, i);
+    }
 }