From: Václav Slavík Date: Sat, 30 Sep 2006 14:44:52 +0000 (+0000) Subject: fixed another typo in pen/brush style validation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e17cd59f72d52833b8132be9245fa6d517fe266f fixed another typo in pen/brush style validation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/dfb/brush.cpp b/src/dfb/brush.cpp index 1302755133..f3d4f8c78c 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; diff --git a/src/dfb/pen.cpp b/src/dfb/pen.cpp index f61ff930a5..d72740cdc8 100644 --- a/src/dfb/pen.cpp +++ b/src/dfb/pen.cpp @@ -40,7 +40,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;