]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/pen.cpp
Connect changed page event after subpages are created so book->SetSelection does...
[wxWidgets.git] / src / dfb / pen.cpp
index 58da1f8e6ba8d0da47e4feb5f0f586ecde27a079..d72740cdc8231be939452e28d97ce8e2d6eebf38 100644 (file)
@@ -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;