X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..8d0634abcff3c1a7f9c9496408a8f4458fe15e40:/src/dfb/brush.cpp diff --git a/src/dfb/brush.cpp b/src/dfb/brush.cpp index da4a6935d9..475491621f 100644 --- a/src/dfb/brush.cpp +++ b/src/dfb/brush.cpp @@ -43,7 +43,7 @@ public: 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; @@ -80,7 +80,7 @@ bool wxBrush::operator==(const wxBrush& brush) const return m_refData == brush.m_refData; } -bool wxBrush::Ok() const +bool wxBrush::IsOk() const { return ((m_refData) && M_BRUSHDATA->m_colour.Ok()); }