From 5475f2dddd7a76e1ee939b99d1ab6f816f4a3271 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 2 Jul 2025 12:45:00 +0200 Subject: 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 --- fluid/nodes/Window_Node.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fluid/nodes') 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(); } -- cgit v1.2.3