changeset 37736:d6f944b128c4

(split_font_name): Handle `[...]' for the right font name fields.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 15 May 2001 10:42:18 +0000
parents 349b1a0d19ab
children 68224ef83a38
files src/xfaces.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Tue May 15 10:39:45 2001 +0000
+++ b/src/xfaces.c	Tue May 15 10:42:18 2001 +0000
@@ -2215,8 +2215,8 @@
 	     indicated by tilde characters which we replace with
 	     `-' characters, here.  */
 	  if (*p == '['
-	      && (i == XLFD_PIXEL_SIZE
-		  || i == XLFD_POINT_SIZE))
+	      && (i - 1 == XLFD_PIXEL_SIZE
+		  || i - 1 == XLFD_POINT_SIZE))
 	    {
 	      char *start, *end;
 	      int j;