diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 0eac04248a..8a4c885574 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/colour.cpp @@ -221,6 +221,9 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue ) M_COLDATA->m_color.green = ((unsigned short)green) << SHIFT; M_COLDATA->m_color.blue = ((unsigned short)blue) << SHIFT; M_COLDATA->m_color.pixel = 0; + + M_COLDATA->m_colormap = (GdkColormap*) NULL; + M_COLDATA->m_hasPixel = FALSE; } unsigned char wxColour::Red() const diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 0eac04248a..8a4c885574 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -221,6 +221,9 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue ) M_COLDATA->m_color.green = ((unsigned short)green) << SHIFT; M_COLDATA->m_color.blue = ((unsigned short)blue) << SHIFT; M_COLDATA->m_color.pixel = 0; + + M_COLDATA->m_colormap = (GdkColormap*) NULL; + M_COLDATA->m_hasPixel = FALSE; } unsigned char wxColour::Red() const