# HG changeset patch # User Jason Rumney # Date 1211799880 0 # Node ID 525a75a42888e2df6afe2beeab298bd3686b503e # Parent 7c54adb01daec875972dd1ae3d1c9dcc4ede48dd (w32font_text_extents): Zero whole metrics struct first. (compute_metrics): Don't set failure if we just cleared the cache. diff -r 7c54adb01dae -r 525a75a42888 src/w32font.c --- a/src/w32font.c Mon May 26 10:55:37 2008 +0000 +++ b/src/w32font.c Mon May 26 11:04:40 2008 +0000 @@ -1896,7 +1896,8 @@ w32_font->glyph_idx = 0; clear_cached_metrics (w32_font); } - metrics->status = W32METRIC_FAIL; + else + metrics->status = W32METRIC_FAIL; } }