]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
removed big-ass manual.html file from src dir.
[wxWidgets.git] / src / gtk / dcclient.cpp
index f03ce148a90d9645cba46945abc67121dbdaf583..7f5e5e5a8dd3b56a65d347afef0880ce55076ef8 100644 (file)
@@ -971,9 +971,12 @@ void wxWindowDC::SetBrush( const wxBrush &brush )
   
     gdk_gc_set_fill( m_brushGC, fillStyle );
   
-    if (m_brush.GetStyle() == wxSTIPPLE)
+    if ((m_brush.GetStyle() == wxSTIPPLE) && (m_brush.GetStipple()->Ok()))
     {
-        gdk_gc_set_stipple( m_brushGC, m_brush.GetStipple()->GetPixmap() );
+        if (m_brush.GetStipple()->GetPixmap())
+            gdk_gc_set_stipple( m_brushGC, m_brush.GetStipple()->GetPixmap() );
+       else
+            gdk_gc_set_stipple( m_brushGC, m_brush.GetStipple()->GetBitmap() );
     }
   
     if (IS_HATCH(m_brush.GetStyle()))