aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-05-14 12:46:39 +0000
committerGerd Moellmann2001-05-14 12:46:39 +0000
commit7b16a6bf075b9d77cd28ec59cc7059d8977802f5 (patch)
treea94bb5aa41e9a3b36a98468781da1c5717cdc248
parent933b024954204260e000f7cf3c8387cc3d53ebe9 (diff)
downloademacs-7b16a6bf075b9d77cd28ec59cc7059d8977802f5.tar.gz
emacs-7b16a6bf075b9d77cd28ec59cc7059d8977802f5.zip
(split_font_name): Make sure to leave the loop
with the right value of `i'.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/xfaces.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0995e0907f6..3f6bf99a6a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-05-14 Gerd Moellmann <gerd@gnu.org> 12001-05-14 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xfaces.c (split_font_name): Make sure to leave the loop
4 with the right value of `i'.
5
3 * xfaces.c (split_font_name): Handle matrix transformations 6 * xfaces.c (split_font_name): Handle matrix transformations
4 in the pixel and point size fields of XLFD font names. 7 in the pixel and point size fields of XLFD font names.
5 (xlfd_point_size): Likewise. 8 (xlfd_point_size): Likewise.
diff --git a/src/xfaces.c b/src/xfaces.c
index a50ec9ae2a9..93acc8b5317 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -2205,9 +2205,10 @@ split_font_name (f, font, numeric_p)
2205 { 2205 {
2206 char *p = xstrlwr (font->name) + 1; 2206 char *p = xstrlwr (font->name) + 1;
2207 2207
2208 for (; i < XLFD_LAST; ++i) 2208 while (i < XLFD_LAST)
2209 { 2209 {
2210 font->fields[i] = p; 2210 font->fields[i] = p;
2211 ++i;
2211 2212
2212 /* Pixel and point size may be of the form `[....]'. For 2213 /* Pixel and point size may be of the form `[....]'. For
2213 BNF, see XLFD spec, chapter 4. Negative values are 2214 BNF, see XLFD spec, chapter 4. Negative values are