X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..a0020fcd54b43f28e9c72ebf0516b0751a08536b:/src/dfb/brush.cpp diff --git a/src/dfb/brush.cpp b/src/dfb/brush.cpp index da4a6935d9..f3d4f8c78c 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;