diff options
| author | Kim F. Storm | 2004-05-10 11:16:37 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-05-10 11:16:37 +0000 |
| commit | 7e1704d0a972c94d21cd44b8c92bfb7bd59c10cc (patch) | |
| tree | 9bc937e7fa0eb67cbd4c45a94db8b336a91a2d60 /src | |
| parent | e2c02c1a1d602d77571d37af93bab58d1abbcb62 (diff) | |
| download | emacs-7e1704d0a972c94d21cd44b8c92bfb7bd59c10cc.tar.gz emacs-7e1704d0a972c94d21cd44b8c92bfb7bd59c10cc.zip | |
(calc_line_height_property): Use string position when
object is a string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index da5f6df7dc8..a9506c66b4d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -18529,12 +18529,16 @@ calc_line_height_property (it, prop, font, boff, total) | |||
| 18529 | XFontStruct *font; | 18529 | XFontStruct *font; |
| 18530 | int boff, *total; | 18530 | int boff, *total; |
| 18531 | { | 18531 | { |
| 18532 | Lisp_Object val; | 18532 | Lisp_Object position, val; |
| 18533 | Lisp_Object face_name = Qnil; | 18533 | Lisp_Object face_name = Qnil; |
| 18534 | int ascent, descent, height, override; | 18534 | int ascent, descent, height, override; |
| 18535 | 18535 | ||
| 18536 | val = Fget_char_property (make_number (IT_CHARPOS (*it)), | 18536 | if (STRINGP (it->object)) |
| 18537 | prop, it->object); | 18537 | position = make_number (IT_STRING_CHARPOS (*it)); |
| 18538 | else | ||
| 18539 | position = make_number (IT_CHARPOS (*it)); | ||
| 18540 | |||
| 18541 | val = Fget_char_property (position, prop, it->object); | ||
| 18538 | 18542 | ||
| 18539 | if (NILP (val)) | 18543 | if (NILP (val)) |
| 18540 | return val; | 18544 | return val; |