Toplevel windows don't have sibling static boxes. Fixes crash in AdjustStaticBoxZOrder.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jamie Gadd
2006-02-10 21:44:54 +00:00
parent 9419b0d649
commit deb0d191ca

View File

@@ -1428,6 +1428,10 @@ void wxWindowMSW::Update()
// a drop target
static inline void AdjustStaticBoxZOrder(wxWindow *parent)
{
// no sibling static boxes if we have no parent (ie TLW)
if ( !parent )
return;
for ( wxWindowList::compatibility_iterator node = parent->GetChildren().GetFirst();
node;
node = node->GetNext() )