diff options
Diffstat (limited to 'FL/Fl_Menu_Item.H')
| -rw-r--r-- | FL/Fl_Menu_Item.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FL/Fl_Menu_Item.H b/FL/Fl_Menu_Item.H index 09b9e0206..6d086ea8b 100644 --- a/FL/Fl_Menu_Item.H +++ b/FL/Fl_Menu_Item.H @@ -217,7 +217,7 @@ struct FL_EXPORT Fl_Menu_Item { \see const char* Fl_Menu_Item::label() const */ void label(Fl_Labeltype a, const char* b) { - labeltype_ = a; + labeltype_ = (uchar)a; text = b; } @@ -273,7 +273,7 @@ struct FL_EXPORT Fl_Menu_Item { the label() pointer as another form of data such as a bitmap. The value FL_NORMAL_LABEL prints the label as text. */ - void labeltype(Fl_Labeltype a) {labeltype_ = a;} + void labeltype(Fl_Labeltype a) {labeltype_ = (uchar)a;} /** Gets the menu item's label color. |
