aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2008-08-02 21:26:08 +0000
committerJason Rumney2008-08-02 21:26:08 +0000
commit4ff1bf172efc2afd5dd76bd3e457ae7b816a747e (patch)
tree9e0417f208de2d6dc5e87dd383f9fa31008df865 /src
parentac1831635bc3132f02e10cc855665a67e5085529 (diff)
downloademacs-4ff1bf172efc2afd5dd76bd3e457ae7b816a747e.tar.gz
emacs-4ff1bf172efc2afd5dd76bd3e457ae7b816a747e.zip
(compute_metrics): Don't mess with glyph_idx setting here.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32font.c8
2 files changed, 4 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cd355044499..c74d93b9c64 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-08-02 Jason Rumney <jasonr@gnu.org>
2
3 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4
12008-08-02 Eli Zaretskii <eliz@gnu.org> 52008-08-02 Eli Zaretskii <eliz@gnu.org>
2 6
3 * alloc.c (NSTATICS): Bump to 0x640. 7 * alloc.c (NSTATICS): Bump to 0x640.
diff --git a/src/w32font.c b/src/w32font.c
index 4a2812560ee..74c74ee0750 100644
--- a/src/w32font.c
+++ b/src/w32font.c
@@ -2265,14 +2265,6 @@ compute_metrics (dc, w32_font, code, metrics)
2265 metrics->width = gm.gmCellIncX; 2265 metrics->width = gm.gmCellIncX;
2266 metrics->status = W32METRIC_SUCCESS; 2266 metrics->status = W32METRIC_SUCCESS;
2267 } 2267 }
2268 else if (w32_font->glyph_idx)
2269 {
2270 /* Can't use glyph indexes after all.
2271 Avoid it in future, and clear any metrics that were based on
2272 glyph indexes. */
2273 w32_font->glyph_idx = 0;
2274 clear_cached_metrics (w32_font);
2275 }
2276 else 2268 else
2277 metrics->status = W32METRIC_FAIL; 2269 metrics->status = W32METRIC_FAIL;
2278} 2270}