diff --git a/fluid/file.cxx b/fluid/file.cxx index b002c2651..1cb7b8c3a 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -1,5 +1,5 @@ // -// "$Id: file.cxx,v 1.7.2.6.2.4 2002/05/13 15:51:47 easysw Exp $" +// "$Id: file.cxx,v 1.7.2.6.2.5 2002/05/13 20:54:49 easysw Exp $" // // Fluid file routines for the Fast Light Tool Kit (FLTK). // @@ -486,15 +486,16 @@ static void read_children(Fl_Type *p, int paste) { extern void deselect(); int read_file(const char *filename, int merge) { + Fl_Type *o; read_version = 0.0; if (!open_read(filename)) return 0; if (merge) deselect(); else delete_all(); read_children(Fl_Type::current, merge); Fl_Type::current = 0; // Force menu items to be rebuilt... - for (Fl_Type *o = Fl_Type::first; o; o = o->next) + for (o = Fl_Type::first; o; o = o->next) if (o->is_menu_button()) o->add_child(0,0); - for (Fl_Type *o = Fl_Type::first; o; o = o->next) + for (o = Fl_Type::first; o; o = o->next) if (o->selected) {Fl_Type::current = o; break;} return close_read(); } @@ -631,5 +632,5 @@ void read_fdesign() { } // -// End of "$Id: file.cxx,v 1.7.2.6.2.4 2002/05/13 15:51:47 easysw Exp $". +// End of "$Id: file.cxx,v 1.7.2.6.2.5 2002/05/13 20:54:49 easysw Exp $". //