wxNullBrush should not be Ok(), and GetNSColor() should return clearColor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6631a2a562
commit
1a94b3d861
@ -139,7 +139,6 @@ WX_NSColor wxBrushRefData::GetNSColor()
|
||||
// Brushes
|
||||
wxBrush::wxBrush()
|
||||
{
|
||||
m_refData = new wxBrushRefData;
|
||||
}
|
||||
|
||||
wxBrush::~wxBrush()
|
||||
@ -210,7 +209,8 @@ wxBitmap *wxBrush::GetStipple() const
|
||||
|
||||
WX_NSColor wxBrush::GetNSColor()
|
||||
{
|
||||
wxCHECK_MSG( Ok(), NULL, _T("invalid brush") );
|
||||
if(!m_refData)
|
||||
return [NSColor clearColor];
|
||||
return M_BRUSHDATA->GetNSColor();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user