X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbb846c622d630b2711eb4a0134af238a1d08431..a679468530239a32cf7efa0d566d5c03a9c90c3f:/src/gtk1/colour.cpp diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 47af43accc..84c790a329 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/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) ||