From 13d8286b8a43a1ee0556fe9d8eb67407b4c550fe Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 19 May 2005 15:57:32 +0000 Subject: FLUID didn't set the initial size of widgets properly (STR #850) Fl_Tabs would steal focus away from its children on a window focus change (STR #870) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/factory.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fluid') diff --git a/fluid/factory.cxx b/fluid/factory.cxx index 1a6bff438..aedaaa1c7 100644 --- a/fluid/factory.cxx +++ b/fluid/factory.cxx @@ -908,7 +908,7 @@ static void cb(Fl_Widget *, void *v) { wt->textstuff(2, f, s, c); // Resize and/or reposition new widget... - int w, h; + int w = 0, h = 0; wt->ideal_size(w, h); if (!strcmp(wt->type_name(), "Fl_Menu_Bar")) { -- cgit v1.2.3