Commit 478ea067 authored by Andrew Innes's avatar Andrew Innes

(xlfd_charset_of_font): Fix last change.

parent 1c3cea11
2000-12-07 Andrew Innes <andrewi@gnu.org>
* w32fns.c (xlfd_charset_of_font): Fix last change.
2000-12-06 Dave Love <fx@gnu.org>
* md5.h (__P): Don't define -- it comes from config.h.
......
......@@ -5462,9 +5462,11 @@ char * xlfd_charset_of_font (char * fontname)
if (!encoding || encoding == fontname)
return NULL;
charset = strrchr(encoding - 1, '-');
for (charset = encoding - 1; charset >= fontname; charset--)
if (*charset == '-')
break;
if (!charset || strcmp(charset, "-*-*") == 0)
if (charset == fontname || strcmp(charset, "-*-*") == 0)
return NULL;
return charset + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment