git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37475
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// a drop target
static inline void AdjustStaticBoxZOrder(wxWindow *parent)
{
// 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() )
for ( wxWindowList::compatibility_iterator node = parent->GetChildren().GetFirst();
node;
node = node->GetNext() )