STR 1992: Fixed Fluid textcolor output

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2008-10-13 20:11:30 +00:00
parent 395129dfdb
commit 8a20846803
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
CHANGES IN FLTK 1.3.0 CHANGES IN FLTK 1.3.0
- Fixed Fluid textcolor output (STR #1992)
- Fixed wrong default value of Fl_Spinner in - Fixed wrong default value of Fl_Spinner in
Fluid (STR #1991) Fluid (STR #1991)
- Fixed first modifier key event (STR #1952) - Fixed first modifier key event (STR #1952)

View File

@ -2245,7 +2245,7 @@ void Fl_Widget_Type::write_widget_code() {
Fl_Font f; int s; Fl_Color c; textstuff(0,f,s,c); Fl_Font f; int s; Fl_Color c; textstuff(0,f,s,c);
if (f != ff) write_c("%s%s->textfont(%d);\n", indent(), var, f); if (f != ff) write_c("%s%s->textfont(%d);\n", indent(), var, f);
if (s != fs) write_c("%s%s->textsize(%d);\n", indent(), var, s); if (s != fs) write_c("%s%s->textsize(%d);\n", indent(), var, s);
if (c != fc) write_c("%s%s->textcolor(%d);\n",indent(), var, c); if (c != fc) write_color("textcolor", c);
}} }}
const char* ud = user_data(); const char* ud = user_data();
if (class_name(1) && !parent->is_widget()) ud = "this"; if (class_name(1) && !parent->is_widget()) ud = "this";