Fluid: "Widget Class" subclasses Group but incorrectly shows Window subtypes.

This commit is contained in:
James Palmer 2021-12-12 14:55:20 -07:00 committed by Matthias Melcher
parent 3565aa1e60
commit a802aaeb17
2 changed files with 4 additions and 1 deletions

View File

@ -2442,7 +2442,7 @@ void Fl_Widget_Type::write_properties() {
if (is_spinner() && ((Fl_Spinner*)o)->type() != ((Fl_Spinner*)tplate)->type()) {
write_string("type");
write_word(item_name(subtypes(), ((Fl_Spinner*)o)->type()));
} else if (o->type() != tplate->type() || is_window()) {
} else if (subtypes() && (o->type() != tplate->type() || is_window())) {
write_string("type");
write_word(item_name(subtypes(), o->type()));
}

View File

@ -99,6 +99,9 @@ public:
};
class Fl_Widget_Class_Type : private Fl_Window_Type {
protected:
Fl_Menu_Item* subtypes() {return 0;}
public:
Fl_Widget_Class_Type() {
write_public_state = 0;