X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/335c3c4a3b8423c0d90ac6c44e956e2d479ebcf0..779e158bb20a8c56551f6b61dac6d194d230d828:/src/dfb/pen.cpp diff --git a/src/dfb/pen.cpp b/src/dfb/pen.cpp index f61ff930a5..e2f1079d0a 100644 --- a/src/dfb/pen.cpp +++ b/src/dfb/pen.cpp @@ -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; @@ -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()); }