Hey Joseph,
2009/9/25 Joseph VanAndel <[email protected]>:
> I've attached a test program that creates a dialog containing multiple tabs.
> If I only create a single tab, the test program works. I'm using Wt from
> git, updated as of 2009/9/25. Here's part of the backtrace - note that
> item=0x0 in the routine that crashed.
> Should I create the dialog differently, or is this a bug?
This is a bug of which for some reason I was certainly was already
fixed (as Grant Gray had signalled this problem before)...
The fix is:
diff --git a/src/Wt/WContainerWidget.C b/src/Wt/WContainerWidget.C
index 2051e84..976a749 100644
--- a/src/Wt/WContainerWidget.C
+++ b/src/Wt/WContainerWidget.C
@@ -513,6 +513,9 @@ int WContainerWidget::firstChildIndex() const
void WContainerWidget::propagateLayoutItemsOk(WLayoutItem *item)
{
+ if (!item)
+ return;
+
if (item->layout()) {
WLayout *layout = item->layout();
const int c = layout->count();
Regards,
koen
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest