]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/brush.cpp
make wxSemaphore::Post() return wxSEMA_OVERFLOW as documented (patch 1557642)
[wxWidgets.git] / src / dfb / brush.cpp
index da4a6935d9ab45fc10f409599a862d79fb91e3f6..f3d4f8c78cb80fb198c6adf63f4d9355eb353e05 100644 (file)
@@ -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;