fixed typos in pen/brush style validation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user