From: Václav Slavík Date: Sat, 30 Sep 2006 14:35:12 +0000 (+0000) Subject: fixed typos in pen/brush style validation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/335c3c4a3b8423c0d90ac6c44e956e2d479ebcf0 fixed typos in pen/brush style validation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/dfb/brush.cpp b/src/dfb/brush.cpp index da4a6935d9..1302755133 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; diff --git a/src/dfb/pen.cpp b/src/dfb/pen.cpp index 58da1f8e6b..f61ff930a5 100644 --- a/src/dfb/pen.cpp +++ b/src/dfb/pen.cpp @@ -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;