X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/335c3c4a3b8423c0d90ac6c44e956e2d479ebcf0..0836334e9fce54fc370314f9d27a513cda9291fa:/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()); }