X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/335c3c4a3b8423c0d90ac6c44e956e2d479ebcf0..50c8b82054d96a9cc846d09ed98eecad07907be0:/src/dfb/brush.cpp?ds=inline diff --git a/src/dfb/brush.cpp b/src/dfb/brush.cpp index 1302755133..475491621f 100644 --- a/src/dfb/brush.cpp +++ b/src/dfb/brush.cpp @@ -43,7 +43,7 @@ public: 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; @@ -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()); }