Wt will crash when trying to call WContainerWidget::setLayout when you
pass in a WGridLayout that satisfies the following conditions

- does not yet have that WContainerWidget as a Parent
- is not complete, ie for example when adding a widget to cells
  0,0; 0,1 and 1,1 but not 1,0.

>From a quick look at the gdb backtrace, I believe the offending code
to be at WLayout::setParent(WWidget). It iterates over all childs
of the layout to reparent them. However in the above case
only 3 childs have been inserted while WGridLayout::count() will return 4.
I have been wrong befor though.

I trust Koen to bring out a quick fix or I shall have to
regulate his meat intake during the BBQ next week! A patch to 2.1.4 is
appreciated.

cu bart

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to