last fix resulted in wrongly inheriting bg colour from the parent with m_inheritBgCol == false, fixed the fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
63ec176495
commit
48d597ed96
@ -4048,9 +4048,11 @@ WXHBRUSH wxWindowMSW::MSWGetSolidBgBrushForChild(wxWindow *child)
|
||||
return 0;
|
||||
}
|
||||
|
||||
wxColour wxWindowMSW::MSWGetBgColourForChild(wxWindow * WXUNUSED(child))
|
||||
wxColour wxWindowMSW::MSWGetBgColourForChild(wxWindow *child)
|
||||
{
|
||||
return m_hasBgCol ? GetBackgroundColour() : wxNullColour;
|
||||
return m_inheritBgCol || (m_hasBgCol && child == this)
|
||||
? GetBackgroundColour()
|
||||
: wxNullColour;
|
||||
}
|
||||
|
||||
WXHBRUSH wxWindowMSW::MSWGetBgBrushForSelf(wxWindow *parent, WXHDC hDC)
|
||||
|
Loading…
Reference in New Issue
Block a user