diff options
| author | Kenichi Handa | 2008-02-06 11:54:51 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-02-06 11:54:51 +0000 |
| commit | b21976907d1c4bbf0fceee56ec03902e3efcc87f (patch) | |
| tree | 20a3f9716a975e02c90a767a4a1d7af02e5c8592 /src | |
| parent | 794e558c7f5e38517b2c929401852e2f03920726 (diff) | |
| download | emacs-b21976907d1c4bbf0fceee56ec03902e3efcc87f.tar.gz emacs-b21976907d1c4bbf0fceee56ec03902e3efcc87f.zip | |
(x_produce_glyphs): Don't set it->ascent and it->descent
to negative value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 2993fbe912f..6e1b06a5aee 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -21398,8 +21398,11 @@ x_produce_glyphs (it) | |||
| 21398 | 21398 | ||
| 21399 | it->pixel_width = cmp->pixel_width; | 21399 | it->pixel_width = cmp->pixel_width; |
| 21400 | it->ascent = it->phys_ascent = cmp->ascent; | 21400 | it->ascent = it->phys_ascent = cmp->ascent; |
| 21401 | if (it->ascent < 0) | ||
| 21402 | it->ascent = it->phys_ascent = 0; | ||
| 21401 | it->descent = it->phys_descent = cmp->descent; | 21403 | it->descent = it->phys_descent = cmp->descent; |
| 21402 | 21404 | if (it->descent < 0) | |
| 21405 | it->descent = it->phys_descent = 0; | ||
| 21403 | if (face->box != FACE_NO_BOX) | 21406 | if (face->box != FACE_NO_BOX) |
| 21404 | { | 21407 | { |
| 21405 | int thick = face->box_line_width; | 21408 | int thick = face->box_line_width; |