diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/composite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/composite.c b/src/composite.c index 5e6d628bbf1..f23bb17c57a 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -891,6 +891,8 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, | |||
| 891 | if (len <= 0) | 891 | if (len <= 0) |
| 892 | return unbind_to (count, Qnil); | 892 | return unbind_to (count, Qnil); |
| 893 | to = limit = charpos + len; | 893 | to = limit = charpos + len; |
| 894 | font_object = win->frame; | ||
| 895 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 894 | if (FRAME_WINDOW_P (f)) | 896 | if (FRAME_WINDOW_P (f)) |
| 895 | { | 897 | { |
| 896 | font_object = font_range (charpos, bytepos, &to, win, face, string); | 898 | font_object = font_range (charpos, bytepos, &to, win, face, string); |
| @@ -900,8 +902,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos, | |||
| 900 | && (fast_looking_at (re, charpos, bytepos, to, -1, string) <= 0))) | 902 | && (fast_looking_at (re, charpos, bytepos, to, -1, string) <= 0))) |
| 901 | return unbind_to (count, Qnil); | 903 | return unbind_to (count, Qnil); |
| 902 | } | 904 | } |
| 903 | else | 905 | #endif |
| 904 | font_object = win->frame; | ||
| 905 | lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, | 906 | lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, |
| 906 | string); | 907 | string); |
| 907 | if (NILP (LGSTRING_ID (lgstring))) | 908 | if (NILP (LGSTRING_ID (lgstring))) |