void SetStyle(int style)
{
- if ( style != wxSOLID && style == wxTRANSPARENT )
+ if ( style != wxSOLID && style != wxTRANSPARENT )
{
wxFAIL_MSG( _T("only wxSOLID and wxTRANSPARENT styles are supported") );
style = wxSOLID;
return m_refData == brush.m_refData;
}
-bool wxBrush::Ok() const
+bool wxBrush::IsOk() const
{
return ((m_refData) && M_BRUSHDATA->m_colour.Ok());
}