wok-4.x view fltk/stuff/fl_set_fonts_xft.patch @ rev 5126

Up: slitaz-tools (3.6) Lots of fixes and improvments
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 21 13:37:33 2010 +0100 (2010-03-21)
parents
children
line source
1 --- src/fl_set_fonts_xft.cxx 2009-03-04 10:58:49.000000000 +0000
2 +++ src/fl_set_fonts_xft.cxx 2009-03-04 11:01:25.000000000 +0000
3 @@ -253,13 +253,13 @@
4 // So the bit we want is up to the first comma - BUT some strings have
5 // more than one name, separated by, guess what?, a comma...
6 stop = start = first = 0;
7 - stop = strchr((const char *)font, ',');
8 - start = strchr((const char *)font, ':');
9 + stop = strchr((char *)font, ',');
10 + start = strchr((char *)font, ':');
11 if ((stop) && (start) && (stop < start))
12 {
13 first = stop + 1; // discard first version of name
14 // find first comma *after* the end of the name
15 - stop = strchr((const char *)start, ',');
16 + stop = strchr((char *)start, ',');
17 }
18 else
19 {