if (!m_colormap)
return;
#if !wxUSE_NANOX
- if ((wxTheApp->m_visualInfo->m_visualType == GrayScale) ||
- (wxTheApp->m_visualInfo->m_visualType == PseudoColor))
+ if ( wxTheApp &&
+ (wxTheApp->m_visualInfo->m_visualType == GrayScale ||
+ wxTheApp->m_visualInfo->m_visualType == PseudoColor) )
{
int idx = m_color.pixel;
colMapAllocCounter[ idx ] = colMapAllocCounter[ idx ] - 1;
{
AllocExclusive();
- m_refData = new wxColourRefData();
#if wxUSE_NANOX
M_COLDATA->m_color.red = ((unsigned short)red) ;
M_COLDATA->m_color.green = ((unsigned short)green) ;