diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-07-02 12:45:00 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-07-02 12:45:00 +0200 |
| commit | 5475f2dddd7a76e1ee939b99d1ab6f816f4a3271 (patch) | |
| tree | b88280c9f32a23e8c9411d50d9eee671d7fa1f60 /fluid/nodes | |
| parent | 66dde2646915ccf679658485e15ee33c3011087b (diff) | |
FLUID: Multiple fixes
- fixes new naming of i18n class
- fixes use of deprecated setonly()
- fixes false assumption that all children of a Window are Widgets
Diffstat (limited to 'fluid/nodes')
| -rw-r--r-- | fluid/nodes/Window_Node.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fluid/nodes/Window_Node.cxx b/fluid/nodes/Window_Node.cxx index 5cc02a356..412a04804 100644 --- a/fluid/nodes/Window_Node.cxx +++ b/fluid/nodes/Window_Node.cxx @@ -267,8 +267,10 @@ void Window_Node::add_child(Node* cc, Node* before) { } void Window_Node::remove_child(Node* cc) { - Widget_Node* c = (Widget_Node*)cc; - ((Fl_Window*)o)->remove(c->o); + if (cc->is_widget()) { + Widget_Node* c = (Widget_Node*)cc; + ((Fl_Window*)o)->remove(c->o); + } o->redraw(); } |
