>       If I understand things correctly, this might be a one liner fix
>       to Fl_Group::clear(), specifically in this section:
> 
> while (children_) {
>   //Fl_Widget *o = child(o);          // <-- COMMENT THIS OUT
>   Fl_Widget *o = child(children_-1);  // <-- USE THIS INSTEAD
>   if ( o->parent() == this ) {
>     remove(o);
>     delete(o);
>   } else {
>     remove(o);
>   }
> }
> 
>       I didn't try this, but I *think* that will help remove()
>       do less work on each iter.
> 
>       Comments welcome.

I'm convinced... That makes good sense to me.


SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to