]> code.delx.au - gnu-emacs/blobdiff - src/xfaces.c
Merge from origin/emacs-25
[gnu-emacs] / src / xfaces.c
index 93d1c471407bc813273248262394e648c60e3996..3ced1d483c34817043b33ac6c72b47fe14092d4a 100644 (file)
@@ -2677,9 +2677,10 @@ FRAME 0 means change the face on all frames, and change the default
     {
       if (NILP (frame))
        frame = selected_frame;
-      f = XFRAME (frame);
 
       CHECK_LIVE_FRAME (frame);
+      f = XFRAME (frame);
+
       lface = lface_from_face_name (f, face, false);
 
       /* If a frame-local face doesn't exist yet, create one.  */