]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/brush.cpp
fixed (rare but fatal) bug in wxWindowDisabler
[wxWidgets.git] / src / gtk / brush.cpp
index ca0987080c1b7503d8e0ed4e123f0a7a88442cb0..b58261b95c34a22bde413acda9d4c50cb6b6a23c 100644 (file)
@@ -66,15 +66,13 @@ wxBrush::wxBrush( const wxBitmap &stippleBitmap )
 {
     m_refData = new wxBrushRefData();
     M_BRUSHDATA->m_colour = *wxBLACK;
+    
     M_BRUSHDATA->m_stipple = stippleBitmap;
+
     if (M_BRUSHDATA->m_stipple.GetMask())
-    {
-                  M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
-        }
-        else
-        {              
-                  M_BRUSHDATA->m_style = wxSTIPPLE;
-        }              
+               M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
+       else
+               M_BRUSHDATA->m_style = wxSTIPPLE;
 
     if (wxTheBrushList) wxTheBrushList->AddBrush( this );
 }