From 6f36a6362982b08574e27a61d9c8716fe5aac8a8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 24 Nov 2022 11:39:20 +0100 Subject: Fixes some FLUID bugs Fl_Flex would not change type when it had no children. Function evaluation could read past string end. Fl_Window_Type would not initialise all member variables. --- fluid/Fl_Window_Type.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'fluid/Fl_Window_Type.h') diff --git a/fluid/Fl_Window_Type.h b/fluid/Fl_Window_Type.h index 41cf73f4b..05a2777ca 100644 --- a/fluid/Fl_Window_Type.h +++ b/fluid/Fl_Window_Type.h @@ -67,7 +67,18 @@ protected: public: - Fl_Window_Type() { drag = dx = dy = 0; sr_min_w = sr_min_h = sr_max_w = sr_max_h = 0; } + Fl_Window_Type() : + mx(0), my(0), + x1(0), y1(0), + bx(0), by(0), br(0), bt(0), + sx(0), sy(0), sr(0), st(0), + dx(0), dy(0), + drag(0), + numselected(0), + recalc(0), + modal(0), non_modal(0), + sr_min_w(0), sr_min_h(0), sr_max_w(0), sr_max_h(0) + { } uchar modal, non_modal; Fl_Type *make(Strategy strategy); -- cgit v1.2.3