paragui-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-dev] Possible bug in PG_WidgetList::RemoveAll in 1.0.4


From: Tim Oertel
Subject: [paragui-dev] Possible bug in PG_WidgetList::RemoveAll in 1.0.4
Date: Fri, 21 Nov 2003 21:16:35 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030826


While PG_WidgetList::AddWidget() calls AddChild(w) to add
the new widget to the list of "owned" widgets, there
is no symmetric call to RemoveChild(w) in PG_WidgetList::RemoveAll().

I believe that RemoveAll() should include a call to RemoveChild()
in the for loop thusly:

   for(vector<PG_Widget*>::iterator i = my_widgetList.begin(); i != my_widgetLis
      (*i)->SetVisible(false);
      (*i)->MoveRect(0,0);
      RemoveChild((*i));
   }

As with the other emails I've sent to the list, I can't be
certain that this fix is correct, but it does seem to
correct the obvious problem I was experiencing...


- Tim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]