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