X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..779e158bb20a8c56551f6b61dac6d194d230d828:/src/dfb/pen.cpp?ds=sidebyside diff --git a/src/dfb/pen.cpp b/src/dfb/pen.cpp index 58da1f8e6b..e2f1079d0a 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; @@ -189,7 +189,7 @@ wxBitmap *wxPen::GetStipple() const return NULL; } -bool wxPen::Ok() const +bool wxPen::IsOk() const { return ((m_refData) && M_PENDATA->m_colour.Ok()); }