diff options
| author | Jason Rumney | 2008-05-26 11:05:42 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-05-26 11:05:42 +0000 |
| commit | dc6cf56878e86c1a6ddee311c68de4e164c704fa (patch) | |
| tree | c0920a9bbf70596cb3aac6574f1164ad76ba98af /src | |
| parent | 995feee471465a501f6c7439841f9abc2b84b8e3 (diff) | |
| download | emacs-dc6cf56878e86c1a6ddee311c68de4e164c704fa.tar.gz emacs-dc6cf56878e86c1a6ddee311c68de4e164c704fa.zip | |
(w32font_text_extents): Zero whole metrics struct first.
(compute_metrics): Don't set failure if we just cleared the cache.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/w32font.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c67bd19a295..a25f6cb615a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2008-05-26 Jason Rumney <jasonr@gnu.org> | 1 | 2008-05-26 Jason Rumney <jasonr@gnu.org> |
| 2 | 2 | ||
| 3 | * w32font.c (w32font_text_extents): Zero whole metrics struct first. | 3 | * w32font.c (w32font_text_extents): Zero whole metrics struct first. |
| 4 | (compute_metrics): Don't set failure if we just cleared the cache. | ||
| 4 | 5 | ||
| 5 | 2008-05-25 Kenichi Handa <handa@m17n.org> | 6 | 2008-05-25 Kenichi Handa <handa@m17n.org> |
| 6 | 7 | ||
diff --git a/src/w32font.c b/src/w32font.c index 22d8c26d069..64d48e2ed63 100644 --- a/src/w32font.c +++ b/src/w32font.c | |||
| @@ -1896,7 +1896,8 @@ static void compute_metrics (dc, w32_font, code, metrics) | |||
| 1896 | w32_font->glyph_idx = 0; | 1896 | w32_font->glyph_idx = 0; |
| 1897 | clear_cached_metrics (w32_font); | 1897 | clear_cached_metrics (w32_font); |
| 1898 | } | 1898 | } |
| 1899 | metrics->status = W32METRIC_FAIL; | 1899 | else |
| 1900 | metrics->status = W32METRIC_FAIL; | ||
| 1900 | } | 1901 | } |
| 1901 | } | 1902 | } |
| 1902 | 1903 | ||