X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbb846c622d630b2711eb4a0134af238a1d08431..2d956b58023a4955313a1c1531bc70a0deb0b831:/src/gtk/colour.cpp diff --git a/src/gtk/colour.cpp b/src/gtk/colour.cpp index 47af43accc..1b82a30b01 100644 --- a/src/gtk/colour.cpp +++ b/src/gtk/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) ||