aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/font.c b/src/font.c
index 305bb14576a..c886c299d19 100644
--- a/src/font.c
+++ b/src/font.c
@@ -3810,7 +3810,7 @@ font_range (ptrdiff_t pos, ptrdiff_t pos_byte, ptrdiff_t *limit,
3810 face_id = 3810 face_id =
3811 NILP (Vface_remapping_alist) 3811 NILP (Vface_remapping_alist)
3812 ? DEFAULT_FACE_ID 3812 ? DEFAULT_FACE_ID
3813 : lookup_basic_face (f, DEFAULT_FACE_ID); 3813 : lookup_basic_face (w, f, DEFAULT_FACE_ID);
3814 3814
3815 face_id = face_at_string_position (w, string, pos, 0, &ignore, 3815 face_id = face_at_string_position (w, string, pos, 0, &ignore,
3816 face_id, false); 3816 face_id, false);
@@ -4559,7 +4559,7 @@ DEFUN ("internal-char-font", Finternal_char_font, Sinternal_char_font, 1, 2, 0,
4559 CHECK_CHARACTER (ch); 4559 CHECK_CHARACTER (ch);
4560 c = XINT (ch); 4560 c = XINT (ch);
4561 f = XFRAME (selected_frame); 4561 f = XFRAME (selected_frame);
4562 face_id = lookup_basic_face (f, DEFAULT_FACE_ID); 4562 face_id = lookup_basic_face (NULL, f, DEFAULT_FACE_ID);
4563 pos = -1; 4563 pos = -1;
4564 } 4564 }
4565 else 4565 else