Don't attempt to get RGB components of invalid colour
This commit is contained in:
parent
67b64ee70f
commit
1d45886c8f
@ -641,7 +641,7 @@ wxCairoPenBrushBaseData::wxCairoPenBrushBaseData(wxGraphicsRenderer* renderer,
|
||||
m_pattern = NULL;
|
||||
m_bmpdata = NULL;
|
||||
|
||||
if ( isTransparent )
|
||||
if ( isTransparent || !col.IsOk() )
|
||||
{
|
||||
m_red =
|
||||
m_green =
|
||||
|
Loading…
Reference in New Issue
Block a user