diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-07-23 22:56:27 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-07-23 22:56:27 +0000 |
| commit | 9688b0b1c3f34bf44399ee120ab5c3f0c826d7df (patch) | |
| tree | ca31e52a8543ab6e29a6d50cfcb0441f8ffe794d /fluid/Fl_Type.h | |
| parent | e9f7f4ce4999d6a48bb89aae3b9f9b01668f99d3 (diff) | |
Fluid was casting Fl_Input_Choice to Fl_Menu_ at two occasions which is wrong since Input_Choice is derived from Fl_Group. Fixed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Type.h')
| -rw-r--r-- | fluid/Fl_Type.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index fd77dafab..4c7d18af5 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -643,10 +643,10 @@ public: #include <FL/Fl_Input_Choice.H> class Fl_Input_Choice_Type : public Fl_Menu_Type { int textstuff(int w, Fl_Font& f, int& s, Fl_Color& c) { - Fl_Menu_ *myo = (Fl_Menu_*)(w==4 ? ((Fl_Widget_Type*)this->factory)->o : this->o); + Fl_Input_Choice *myo = (Fl_Input_Choice*)(w==4 ? ((Fl_Widget_Type*)this->factory)->o : this->o); switch (w) { case 4: - case 0: f = myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break; + case 0: f = (Fl_Font)myo->textfont(); s = myo->textsize(); c = myo->textcolor(); break; case 1: myo->textfont(f); break; case 2: myo->textsize(s); break; case 3: myo->textcolor(c); break; @@ -665,6 +665,7 @@ public: if (w < (15 + h)) w = 15 + h; } virtual const char *type_name() {return "Fl_Input_Choice";} + virtual Fl_Type* click_test(int,int); Fl_Widget *widget(int X,int Y,int W,int H) { Fl_Input_Choice *myo = new Fl_Input_Choice(X,Y,W,H,"input choice:"); myo->menu(dummymenu); |
