Fl::set_font() did not clear 'pretty' name of existing font

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-07-16 08:13:20 +00:00
parent 651bf8d275
commit 56933d2b80
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745)
- Fl::set_font would not clear 'pretty' name (STR #902)
- Fixed unescaped '@' in fonts demo (STR #867)
- Fluid should not open the Display connection anymore if
creating code only (STR #904)

View File

@ -70,6 +70,7 @@ void Fl::set_font(Fl_Font fnum, const char* name) {
s->first = 0;
}
s->name = name;
s->fontname[0] = 0;
#if !defined(WIN32) && !defined(__APPLE__)
s->xlist = 0;
#endif