diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index c4ec6109cf..4ccd8ddc71 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1508,7 +1508,7 @@ void wxWindowDCImpl::Clear() if (!m_gdkwindow) return; - if (!m_backgroundBrush.IsOk() || m_backgroundBrush.GetStyle() == wxBRUSHSTYLE_TRANSPARENT) + if (m_backgroundBrush.IsTransparent()) return; int width,height;