diff options
| author | Kenichi Handa | 2007-04-24 11:35:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-04-24 11:35:15 +0000 |
| commit | 1385a8061f0a187e18ba79540481e7698f2e0667 (patch) | |
| tree | ba0657fde8b5485f6fc1f81854c5fe10d28cd139 /src | |
| parent | 35920d523768481258c93dadaf95e9e6aeb08a2b (diff) | |
| download | emacs-1385a8061f0a187e18ba79540481e7698f2e0667.tar.gz emacs-1385a8061f0a187e18ba79540481e7698f2e0667.zip | |
(font_at): If the window W is not on a window system,
return Qnil.
Diffstat (limited to 'src')
| -rw-r--r-- | src/font.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c index b0838cee1c0..e6d38dee2fb 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -2888,6 +2888,8 @@ font_at (c, pos, face, w, object) | |||
| 2888 | int dummy; | 2888 | int dummy; |
| 2889 | 2889 | ||
| 2890 | f = XFRAME (w->frame); | 2890 | f = XFRAME (w->frame); |
| 2891 | if (! FRAME_WINDOW_P (f)) | ||
| 2892 | return Qnil; | ||
| 2891 | if (! face) | 2893 | if (! face) |
| 2892 | { | 2894 | { |
| 2893 | if (STRINGP (object)) | 2895 | if (STRINGP (object)) |