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:
@@ -139,7 +139,6 @@ WX_NSColor wxBrushRefData::GetNSColor()
|
|||||||
// Brushes
|
// Brushes
|
||||||
wxBrush::wxBrush()
|
wxBrush::wxBrush()
|
||||||
{
|
{
|
||||||
m_refData = new wxBrushRefData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBrush::~wxBrush()
|
wxBrush::~wxBrush()
|
||||||
@@ -210,7 +209,8 @@ wxBitmap *wxBrush::GetStipple() const
|
|||||||
|
|
||||||
WX_NSColor wxBrush::GetNSColor()
|
WX_NSColor wxBrush::GetNSColor()
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( Ok(), NULL, _T("invalid brush") );
|
if(!m_refData)
|
||||||
|
return [NSColor clearColor];
|
||||||
return M_BRUSHDATA->GetNSColor();
|
return M_BRUSHDATA->GetNSColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user