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 NULL;
}
-bool wxPen::Ok() const
+bool wxPen::IsOk() const
{
return ((m_refData) && M_PENDATA->m_colour.Ok());
}