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:
@@ -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() )
|
||||
|
Reference in New Issue
Block a user