]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed another typo in pen/brush style validation
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 30 Sep 2006 14:44:52 +0000 (14:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 30 Sep 2006 14:44:52 +0000 (14:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/dfb/brush.cpp
src/dfb/pen.cpp

index 1302755133c1505c417b90505f736e5246a83bde..f3d4f8c78cb80fb198c6adf63f4d9355eb353e05 100644 (file)
@@ -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;
index f61ff930a5cafff1b6ffa8db0f3956d2387a2df2..d72740cdc8231be939452e28d97ce8e2d6eebf38 100644 (file)
@@ -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;