don't look for notebooks beyond first top level parent in our hierarchy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e96ec686d8
commit
ab022a5c7a
@ -359,6 +359,12 @@ WXHBRUSH wxControl::MSWControlColor(WXHDC pDC)
|
||||
{
|
||||
for ( wxWindow *win = this; win; win = win->GetParent() )
|
||||
{
|
||||
if ( win->IsTopLevel() )
|
||||
{
|
||||
// don't go beyond the first top level parent
|
||||
break;
|
||||
}
|
||||
|
||||
wxNotebook *nbook = wxDynamicCast(win, wxNotebook);
|
||||
if ( nbook )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user