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