X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbb846c622d630b2711eb4a0134af238a1d08431..b15ed747536e28abd36b95f4faeb0813188196af:/src/gtk/colour.cpp diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 47af43accc..84c790a329 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/colour.cpp @@ -36,6 +36,7 @@ public: } wxColourRefData(const wxColourRefData& data) + : wxObjectRefData() { m_color = data.m_color; m_colormap = data.m_colormap; @@ -117,8 +118,8 @@ void wxColourRefData::AllocColour( GdkColormap *cmap ) FreeColour(); #ifdef __WXGTK20__ - if ((m_colormap->visual->type == GDK_VISUAL_GRAYSCALE) || - (m_colormap->visual->type == GDK_VISUAL_PSEUDO_COLOR)) + if ( (cmap->visual->type == GDK_VISUAL_GRAYSCALE) || + (cmap->visual->type == GDK_VISUAL_PSEUDO_COLOR) ) #else GdkColormapPrivate *private_colormap = (GdkColormapPrivate*) cmap; if ((private_colormap->visual->type == GDK_VISUAL_GRAYSCALE) ||