Don't attempt to get RGB components of invalid colour

This commit is contained in:
Artur Wieczorek
2019-12-06 20:44:18 +01:00
parent 67b64ee70f
commit 1d45886c8f

View File

@@ -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 =