diff options
| author | Paul Eggert | 2011-03-06 11:43:58 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-03-06 11:43:58 -0800 |
| commit | 367c19e58bd4ccf47dd0ce018002b2ae4e12f949 (patch) | |
| tree | 0a17d637c09053a92a564afaabb2c2ce106a85fd /src/xdisp.c | |
| parent | 7831777b8a9e8d2f68bd17058359ea8849d66f70 (diff) | |
| download | emacs-367c19e58bd4ccf47dd0ce018002b2ae4e12f949.tar.gz emacs-367c19e58bd4ccf47dd0ce018002b2ae4e12f949.zip | |
* xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
Add a FIXME comment, since the code still doesn't look right.
Diffstat (limited to 'src/xdisp.c')
| -rw-r--r-- | src/xdisp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 44cb7130119..44a317b5785 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -22292,7 +22292,13 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym) | |||
| 22292 | if (metrics_upper.width >= metrics_lower.width) | 22292 | if (metrics_upper.width >= metrics_lower.width) |
| 22293 | lower_xoff = (width - metrics_lower.width) / 2; | 22293 | lower_xoff = (width - metrics_lower.width) / 2; |
| 22294 | else | 22294 | else |
| 22295 | upper_xoff = (width - metrics_upper.width) / 2; | 22295 | { |
| 22296 | /* FIXME: This code doesn't look right. It formerly was | ||
| 22297 | missing the "lower_xoff = 0;", which couldn't have | ||
| 22298 | been right since it left lower_xoff uninitialized. */ | ||
| 22299 | lower_xoff = 0; | ||
| 22300 | upper_xoff = (width - metrics_upper.width) / 2; | ||
| 22301 | } | ||
| 22296 | } | 22302 | } |
| 22297 | 22303 | ||
| 22298 | /* +5 is for horizontal bars of a box plus 1-pixel spaces at | 22304 | /* +5 is for horizontal bars of a box plus 1-pixel spaces at |