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

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

index da4a6935d9ab45fc10f409599a862d79fb91e3f6..1302755133c1505c417b90505f736e5246a83bde 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;
index 58da1f8e6ba8d0da47e4feb5f0f586ecde27a079..f61ff930a5cafff1b6ffa8db0f3956d2387a2df2 100644 (file)
@@ -40,7 +40,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;