changeset 95310:525a75a42888

(w32font_text_extents): Zero whole metrics struct first. (compute_metrics): Don't set failure if we just cleared the cache.
author Jason Rumney <jasonr@gnu.org>
date Mon, 26 May 2008 11:04:40 +0000
parents 7c54adb01dae
children f4619b245013
files src/w32font.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }
 }