X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbb846c622d630b2711eb4a0134af238a1d08431..db0ff83efbd6105c04d5ab84c85094e887e97b9a:/src/gtk1/colour.cpp diff --git a/src/gtk1/colour.cpp b/src/gtk1/colour.cpp index 47af43accc..1b82a30b01 100644 --- a/src/gtk1/colour.cpp +++ b/src/gtk1/colour.cpp @@ -117,8 +117,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) ||