diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index 13a5cbf0e9..9a7ec737db 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -641,7 +641,7 @@ wxCairoPenBrushBaseData::wxCairoPenBrushBaseData(wxGraphicsRenderer* renderer, m_pattern = NULL; m_bmpdata = NULL; - if ( isTransparent ) + if ( isTransparent || !col.IsOk() ) { m_red = m_green =