diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_set_fonts_xft.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fl_set_fonts_xft.cxx b/src/fl_set_fonts_xft.cxx index 2aa3edcaf..13374ee7f 100644 --- a/src/fl_set_fonts_xft.cxx +++ b/src/fl_set_fonts_xft.cxx @@ -82,7 +82,6 @@ static void make_raw_name(char *raw, char *pretty) // italic, bold, bold italic or normal - this seems to be the fltk way... char *style = strchr(pretty, ':'); - char *last = style + strlen(style) - 2; if (style) { @@ -120,7 +119,10 @@ static void make_raw_name(char *raw, char *pretty) #define BOLD 1 #define ITALIC 2 #define BITALIC (BOLD | ITALIC) + int mods = PLAIN; + char *last = style + strlen(style) - 2; + // Now try and parse the style string - look for the "=" sign style = strchr(style, '='); while ((style) && (style < last)) |
